1 instantiation of SafeCertContextHandle
System (1)
security\system\security\cryptography\cryptoapi.cs (1)
4023
SafeCertContextHandle invalidHandle = new
SafeCertContextHandle
(IntPtr.Zero);
77 references to SafeCertContextHandle
System (77)
security\system\security\cryptography\cryptoapi.cs (41)
1979
SafeCertContextHandle
CertCreateCertificateContext (
1990
SafeCertContextHandle
CertDuplicateCertificateContext(
1999
SafeCertContextHandle
CertDuplicateCertificateContext(
2000
[In]
SafeCertContextHandle
pCertContext);
2048
[In]
SafeCertContextHandle
pCertContext,
2063
[In]
SafeCertContextHandle
pCertContext,
2084
[In]
SafeCertContextHandle
pCertContext,
2131
[In]
SafeCertContextHandle
pCertContext,
2174
[In]
SafeCertContextHandle
pCert,
2476
[In]
SafeCertContextHandle
pCertContext,
2478
[In,Out]
SafeCertContextHandle
ppStoreContext);
2488
[In]
SafeCertContextHandle
pCertContext,
2490
[In,Out]
SafeCertContextHandle
ppStoreContext);
2499
[In]
SafeCertContextHandle
pCertContext);
2517
SafeCertContextHandle
CertEnumCertificatesInStore (
2519
[In]
SafeCertContextHandle
pPrevCertContext);
2528
SafeCertContextHandle
CertFindCertificateInStore(
2534
[In]
SafeCertContextHandle
pPrevCertContext);
2582
[In]
SafeCertContextHandle
pCertContext,
2594
[In]
SafeCertContextHandle
pCertContext,
2602
SafeCertContextHandle
CertCreateSelfSignCertificate(
2943
[In]
SafeCertContextHandle
safeCertContext,
3333
[In]
SafeCertContextHandle
pCertContext,
3359
[In]
SafeCertContextHandle
pCertContext,
3386
SafeCertContextHandle
CertDuplicateCertificateContext (
3389
return
SafeCertContextHandle
.InvalidHandle;
3398
SafeCertContextHandle
CertDuplicateCertificateContext (
3399
[In]
SafeCertContextHandle
pCertContext) {
3401
return
SafeCertContextHandle
.InvalidHandle;
3441
SafeCertContextHandle
CertEnumCertificatesInStore (
3443
[In]
SafeCertContextHandle
pPrevCertContext) {
3457
SafeCertContextHandle
safeCertContextHandle = CAPIMethods.CertEnumCertificatesInStore(hCertStore, pPrevCertContext);
3691
[In]
SafeCertContextHandle
pCertContext,
3693
[In,Out]
SafeCertContextHandle
ppStoreContext) {
3726
[In]
SafeCertContextHandle
pCertContext,
3728
[In,Out]
SafeCertContextHandle
ppStoreContext) {
3760
[In]
SafeCertContextHandle
pCertContext) {
3832
SafeCertContextHandle
CertFindCertificateInStore(
3838
[In]
SafeCertContextHandle
pPrevCertContext) {
4021
internal static
SafeCertContextHandle
InvalidHandle {
4023
SafeCertContextHandle
invalidHandle = new SafeCertContextHandle(IntPtr.Zero);
security\system\security\cryptography\x509\x509certificate2.cs (9)
292
private
SafeCertContextHandle
m_safeCertContext =
SafeCertContextHandle
.InvalidHandle;
1126
m_safeCertContext =
SafeCertContextHandle
.InvalidHandle;
1181
internal
SafeCertContextHandle
CertContext {
1193
internal static bool GetPrivateKeyInfo (
SafeCertContextHandle
safeCertContext, ref CspParameters parameters) {
1303
private static unsafe Oid GetSignatureAlgorithm (
SafeCertContextHandle
safeCertContextHandle) {
1312
private static unsafe uint GetVersion (
SafeCertContextHandle
safeCertContextHandle) {
1371
private static unsafe void SetFriendlyNameExtendedProperty (
SafeCertContextHandle
safeCertContextHandle, string name) {
1389
private static unsafe void SetPrivateKeyProperty (
SafeCertContextHandle
safeCertContextHandle, ICspAsymmetricAlgorithm asymmetricAlgorithm) {
security\system\security\cryptography\x509\x509certificate2collection.cs (18)
298
SafeCertContextHandle
safeCertContextHandle =
SafeCertContextHandle
.InvalidHandle;
397
internal delegate int FindProcDelegate (
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData);
630
SafeCertContextHandle
pEnumContext =
SafeCertContextHandle
.InvalidHandle;
679
SafeCertContextHandle
.InvalidHandle)) {
711
private static unsafe int FindSubjectDistinguishedNameCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
725
private static unsafe int FindIssuerDistinguishedNameCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
740
private static unsafe int FindSerialNumberCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
768
private static unsafe int FindTimeValidCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
785
private static unsafe int FindTimeNotAfterCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
802
private static unsafe int FindTimeNotBeforeCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
821
private static unsafe int FindTemplateNameCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
892
private static unsafe int FindApplicationPolicyCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
929
private static unsafe int FindCertificatePolicyCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
974
private static unsafe int FindExtensionCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
997
private static unsafe int FindKeyUsageCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
1021
private static unsafe int FindSubjectKeyIdentifierCallback(
SafeCertContextHandle
safeCertContextHandle, object pvCallbackData) {
security\system\security\cryptography\x509\x509chain.cs (1)
343
SafeCertContextHandle
pCertContext,
security\system\security\cryptography\x509\x509extension.cs (2)
603
internal unsafe X509ExtensionCollection(
SafeCertContextHandle
safeCertContextHandle) {
604
using (
SafeCertContextHandle
certContext = CAPI.CertDuplicateCertificateContext(safeCertContextHandle)) {
security\system\security\cryptography\x509\x509store.cs (4)
201
SafeCertContextHandle
.InvalidHandle))
269
private static void RemoveCertificateFromStore(SafeCertStoreHandle safeCertStoreHandle,
SafeCertContextHandle
safeCertContext) {
277
SafeCertContextHandle
safeCertContext2 = CAPI.CertFindCertificateInStore(safeCertStoreHandle,
282
SafeCertContextHandle
.InvalidHandle);
security\system\security\cryptography\x509\x509utils.cs (2)
372
SafeCertContextHandle
.InvalidHandle))
543
internal static unsafe int VerifyCertificate (
SafeCertContextHandle
pCertContext,