3 writes to _certContext
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (3)
477
_certContext
= null!;
531
_certContext
= new SafeCertContextHandle(copyFrom._certContext);
545
_certContext
= certContext;
23 references to _certContext
System.Security.Cryptography (23)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (21)
50
get { return
_certContext
.DangerousGetHandle(); }
53
internal SafeCertContextHandle? SafeHandle =>
_certContext
;
68
if (!Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_SHA1_HASH_PROP_ID, null, ref cbData))
72
if (!Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_SHA1_HASH_PROP_ID, thumbprint, ref cbData))
153
if (!Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, null, ref cbData))
157
if (!Interop.Crypt32.CertGetCertificateChain((IntPtr)Interop.Crypt32.ChainEngine.HCCE_CURRENT_USER,
_certContext
, null, SafeCertStoreHandle.InvalidHandle, ref chainPara, Interop.Crypt32.CertChainFlags.None, IntPtr.Zero, out certChainContext))
159
if (!Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, null, ref cbData))
164
if (!Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, keyAlgorithmParameters, ref cbData))
272
bool archivePropertyExists = Interop.Crypt32.CertGetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_ARCHIVED_PROP_ID, null!, ref uninteresting);
282
if (!Interop.Crypt32.CertSetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_ARCHIVED_PROP_ID, Interop.Crypt32.CertSetPropertyFlags.None, pValue))
295
if (!Interop.Crypt32.CertGetCertificateContextPropertyString(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_FRIENDLY_NAME_PROP_ID, null, ref cbData))
304
if (!Interop.Crypt32.CertGetCertificateContextPropertyString(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_FRIENDLY_NAME_PROP_ID, (byte*)ptr, ref cbData))
321
if (!Interop.Crypt32.CertSetCertificateContextProperty(
_certContext
, Interop.Crypt32.CertContextPropId.CERT_FRIENDLY_NAME_PROP_ID, Interop.Crypt32.CertSetPropertyFlags.None, &blob))
401
_certContext
,
423
CspParameters? parameters = CertificateHelpers.GetPrivateKeyCsp(
_certContext
);
476
SafeCertContextHandle certContext =
_certContext
;
522
_certContext
,
531
_certContext = new SafeCertContextHandle(copyFrom.
_certContext
);
577
_certContext
.DangerousAddRef(ref added);
581
return callback(
_certContext
.DangerousCertContext);
587
_certContext
.DangerousRelease();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (2)
17
return
_certContext
.ContainsPrivateKey;
271
pal.
_certContext
,