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