1 instantiation of SafeCertContextHandle
System.Core (1)
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
498
SafeCertContextHandle invalidHandle = new
SafeCertContextHandle
(IntPtr.Zero);
22 references to SafeCertContextHandle
System.Core (22)
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (4)
30
using (
SafeCertContextHandle
certificateContext = X509Native.GetCertificateContext(certificate))
39
private static SafeBCryptKeyHandle ImportPublicKeyInfo(
SafeCertContextHandle
certContext)
72
using (
SafeCertContextHandle
safeCertContext = X509Native.GetCertificateContext(certificate))
115
SafeCertContextHandle
safeCertContext = X509Native.GetCertificateContext(certificate);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
73
using (
SafeCertContextHandle
certificateContext = X509Native.GetCertificateContext(certificate))
System\Security\Cryptography\X509Certificates\X509Native.cs (17)
25
internal static bool HasCertificateProperty(
SafeCertContextHandle
certificateContext,
47
SafeCertContextHandle
certificateContext,
116
internal static byte[] GetCertificateProperty(
SafeCertContextHandle
certificateContext,
149
internal static T GetCertificateProperty<T>(
SafeCertContextHandle
certificateContext,
167
SafeCertContextHandle
certificateContext,
183
SafeCertContextHandle
certificateContext,
205
internal static
SafeCertContextHandle
DuplicateCertContext(IntPtr context) {
214
internal static
SafeCertContextHandle
GetCertificateContext(X509Certificate certificate) {
215
SafeCertContextHandle
certificateContext = DuplicateCertContext(certificate.Handle);
415
internal static extern bool CertGetCertificateContextProperty(
SafeCertContextHandle
pCertContext,
422
internal static extern bool CertGetCertificateContextProperty(
SafeCertContextHandle
pCertContext,
429
internal static extern bool CertSetCertificateContextProperty(
SafeCertContextHandle
pCertContext,
436
internal static extern bool CertSetCertificateContextProperty(
SafeCertContextHandle
pCertContext,
442
internal static extern
SafeCertContextHandle
CertDuplicateCertificateContext(IntPtr certContext); // CERT_CONTEXT *
446
internal static extern bool CryptAcquireCertificatePrivateKey(
SafeCertContextHandle
pCert,
494
internal static
SafeCertContextHandle
InvalidHandle
498
SafeCertContextHandle
invalidHandle = new SafeCertContextHandle(IntPtr.Zero);