1 instantiation of SafeCertContextHandle
System.Security (1)
system\security\cryptography\cryptoapi.cs (1)
3073
SafeCertContextHandle invalidHandle = new
SafeCertContextHandle
(IntPtr.Zero);
56 references to SafeCertContextHandle
System.Security (56)
system\security\cryptography\cryptoapi.cs (25)
1847
SafeCertContextHandle
CertCreateCertificateContext (
1855
SafeCertContextHandle
CertDuplicateCertificateContext(
1869
[In]
SafeCertContextHandle
pCertContext,
1881
[In]
SafeCertContextHandle
pCertContext,
1890
[In]
SafeCertContextHandle
pCertContext,
1925
[In]
SafeCertContextHandle
pCert,
2141
[In]
SafeCertContextHandle
pCertContext,
2143
[In,Out]
SafeCertContextHandle
ppStoreContext);
2150
[In]
SafeCertContextHandle
pCertContext,
2152
[In,Out]
SafeCertContextHandle
ppStoreContext);
2164
SafeCertContextHandle
CertFindCertificateInStore(
2170
[In]
SafeCertContextHandle
pPrevCertContext);
2185
SafeCertContextHandle
CertCreateSelfSignCertificate(
2285
SafeCertContextHandle
CryptUIDlgSelectCertificateW (
2672
internal static
SafeCertContextHandle
CertDuplicateCertificateContext (
2675
return
SafeCertContextHandle
.InvalidHandle;
2713
[In]
SafeCertContextHandle
pCertContext,
2715
[In,Out]
SafeCertContextHandle
ppStoreContext) {
2742
[In]
SafeCertContextHandle
pCertContext,
2744
[In,Out]
SafeCertContextHandle
ppStoreContext) {
2870
internal static
SafeCertContextHandle
CryptUIDlgSelectCertificateW (
2902
internal static
SafeCertContextHandle
CertFindCertificateInStore(
2908
[In]
SafeCertContextHandle
pPrevCertContext) {
3071
internal static
SafeCertContextHandle
InvalidHandle {
3073
SafeCertContextHandle
invalidHandle = new SafeCertContextHandle(IntPtr.Zero);
system\security\cryptography\pkcs\envelopedpkcs7.cs (13)
39
internal
SafeCertContextHandle
safeCertContextHandle;
299
SafeCertContextHandle
pOriginatorCert =
SafeCertContextHandle
.InvalidHandle;
319
SafeCertContextHandle
.InvalidHandle);
422
List<
SafeCertContextHandle
> certContexts = null;
524
SafeCertContextHandle
safeCertContextHandle =
SafeCertContextHandle
.InvalidHandle;
535
SafeCertContextHandle
.InvalidHandle);
544
SafeCertContextHandle
.InvalidHandle);
556
SafeCertContextHandle
.InvalidHandle);
1011
out List<
SafeCertContextHandle
> certContexts) {
1019
certContexts = new List<
SafeCertContextHandle
>();
1028
SafeCertContextHandle
certContext = X509Utils.GetCertContext(recipients[index].Certificate);
system\security\cryptography\pkcs\pkcsutils.cs (7)
231
SafeCertContextHandle
safeCertContextHandle = CAPI.CAPISafe.CertCreateCertificateContext(CAPI.X509_ASN_ENCODING | CAPI.PKCS_7_ASN_ENCODING,
784
SafeCertContextHandle
safeCertContextHandle = X509Utils.GetCertContext(signer.Certificate);
830
internal static int GetCertPrivateKey(
SafeCertContextHandle
safeCertContextHandle, out SafeCryptProvHandle safeCryptProvHandle, out uint keySpec) {
963
SafeCertContextHandle
safeCertContextHandle = X509Utils.GetCertContext(certificate);
984
SafeCertContextHandle
safeCertContextHandle = X509Utils.GetCertContext(certificate);
1039
SafeCertContextHandle
handle =
SafeCertContextHandle
.InvalidHandle;
system\security\cryptography\x509\x509ui.cs (4)
51
private static void DisplayX509Certificate (
SafeCertContextHandle
safeCertContext, IntPtr hwndParent) {
145
SafeCertContextHandle
safeCertContextHandle = CAPI.CryptUIDlgSelectCertificateW(csc);
149
SafeCertContextHandle
ppStoreContext =
SafeCertContextHandle
.InvalidHandle;
system\security\cryptography\x509\x509utils.cs (7)
136
internal static
SafeCertContextHandle
GetCertContext (X509Certificate2 certificate) {
137
SafeCertContextHandle
safeCertContext = CAPI.CertDuplicateCertificateContext(certificate.Handle);
143
internal static bool GetPrivateKeyInfo (
SafeCertContextHandle
safeCertContext, ref CspParameters parameters) {
225
using (
SafeCertContextHandle
ctx = X509Utils.GetCertContext(x509)) {
229
SafeCertContextHandle
.InvalidHandle))
293
SafeCertContextHandle
pCertContext,
364
internal static unsafe int VerifyCertificate (
SafeCertContextHandle
pCertContext,