20 writes to m_safeCertContext
System (20)
security\system\security\cryptography\x509\x509certificate2.cs (20)
320
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
327
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
332
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
340
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
345
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
357
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
368
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
375
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
387
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
394
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
405
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
412
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
419
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1056
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1065
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1074
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1085
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1096
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1107
m_safeCertContext
= CAPI.CertDuplicateCertificateContext(this.Handle);
1126
m_safeCertContext
= SafeCertContextHandle.InvalidHandle;
39 references to m_safeCertContext
System (39)
security\system\security\cryptography\x509\x509certificate2.cs (39)
431
if (verbose == false ||
m_safeCertContext
.IsInvalid)
602
if (
m_safeCertContext
.IsInvalid)
606
return CAPI.CertGetCertificateContextProperty(
m_safeCertContext
,
619
if (!CAPI.CertSetCertificateContextProperty(
m_safeCertContext
,
633
if (
m_safeCertContext
.IsInvalid)
637
m_extensions = new X509ExtensionCollection(
m_safeCertContext
);
648
if (
m_safeCertContext
.IsInvalid)
653
if (!CAPI.CertGetCertificateContextProperty(
m_safeCertContext
,
660
if (!CAPI.CertGetCertificateContextProperty(
m_safeCertContext
,
674
if (
m_safeCertContext
.IsInvalid)
680
SetFriendlyNameExtendedProperty(
m_safeCertContext
, value);
689
if (
m_safeCertContext
.IsInvalid)
694
CAPI.CERT_CONTEXT pCertContext = *((CAPI.CERT_CONTEXT*)
m_safeCertContext
.DangerousGetHandle());
709
if (
m_safeCertContext
.IsInvalid)
714
CAPI.CERT_CONTEXT pCertContext = *((CAPI.CERT_CONTEXT*)
m_safeCertContext
.DangerousGetHandle());
730
if (
m_safeCertContext
.IsInvalid)
735
CAPI.CERT_CONTEXT pCertContext = *((CAPI.CERT_CONTEXT*)
m_safeCertContext
.DangerousGetHandle());
751
if (
m_safeCertContext
.IsInvalid)
759
hasPrivateKey = CAPI.CertGetCertificateContextProperty(
m_safeCertContext
,
765
hasPrivateKey = CAPI.CertGetCertificateContextProperty(
m_safeCertContext
,
786
if (!GetPrivateKeyInfo(
m_safeCertContext
, ref parameters))
815
if (
m_safeCertContext
.IsInvalid)
855
SetPrivateKeyProperty(
m_safeCertContext
, asymmetricAlgorithm);
866
if (
m_safeCertContext
.IsInvalid)
898
if (
m_safeCertContext
.IsInvalid)
903
CAPI.CERT_CONTEXT pCertContext = *((CAPI.CERT_CONTEXT*)
m_safeCertContext
.DangerousGetHandle());
918
if (
m_safeCertContext
.IsInvalid)
922
m_signatureAlgorithm = GetSignatureAlgorithm(
m_safeCertContext
);
939
if (
m_safeCertContext
.IsInvalid)
943
m_version = (int) GetVersion(
m_safeCertContext
);
958
return CAPI.GetCertNameInfo(
m_safeCertContext
, issuerFlag, type);
961
return CAPI.GetCertNameInfo(
m_safeCertContext
, issuerFlag, type);
966
CAPI.CERT_CONTEXT pCertContext = *((CAPI.CERT_CONTEXT*)
m_safeCertContext
.DangerousGetHandle());
1043
name = CAPI.GetCertNameInfo(
m_safeCertContext
, issuerFlag, CAPI.CERT_NAME_ATTR_TYPE);
1123
if (!
m_safeCertContext
.IsInvalid) {
1125
m_safeCertContext
.Dispose();
1133
if (
m_safeCertContext
.IsInvalid)
1186
return
m_safeCertContext
;
1244
if (GetPrivateKeyInfo(
m_safeCertContext
, ref parameters))