2 writes to _certStore
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (2)
83
_certStore
= null!;
105
_certStore
= certStore;
15 references to _certStore
System.Security.Cryptography (15)
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (9)
43
while (Interop.crypt32.CertEnumCertificatesInStore(
_certStore
, ref pCertContext))
54
if (!Interop.Crypt32.CertAddCertificateContextToStore(
_certStore
, certContext, Interop.Crypt32.CertStoreAddDisposition.CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES, IntPtr.Zero))
67
if (!Interop.crypt32.CertFindCertificateInStore(
_certStore
, Interop.Crypt32.CertFindType.CERT_FIND_EXISTING, pCertContext, ref enumCertContext))
80
SafeCertStoreHandle? certStore =
_certStore
;
90
get { return
_certStore
; }
97
if (
_certStore
== null ||
_certStore
.IsInvalid ||
_certStore
.IsClosed)
99
return
_certStore
;
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (6)
33
if (!Interop.crypt32.CertEnumCertificatesInStore(
_certStore
, ref pCertContext))
56
if (!Interop.crypt32.CertEnumCertificatesInStore(
_certStore
, ref pCertContext))
143
if (!Interop.Crypt32.PFXExportCertStoreEx(
_certStore
, ref dataBlob, password, exportParams, flags))
154
if (!Interop.Crypt32.PFXExportCertStoreEx(
_certStore
, ref dataBlob, password, exportParams, flags))
256
if (!Interop.Crypt32.CertSaveStore(
_certStore
, Interop.Crypt32.CertEncodingType.All, dwSaveAs, Interop.Crypt32.CertStoreSaveTo.CERT_STORE_SAVE_TO_MEMORY, ref blob, 0))
263
if (!Interop.Crypt32.CertSaveStore(
_certStore
, Interop.Crypt32.CertEncodingType.All, dwSaveAs, Interop.Crypt32.CertStoreSaveTo.CERT_STORE_SAVE_TO_MEMORY, ref blob, 0))