1 instantiation of SafeX509StackHandle
System.Security.Cryptography (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
84
SafeHandleCache<SafeX509StackHandle>.GetInvalidHandle(() => new
SafeX509StackHandle
());
62 references to SafeX509StackHandle
System.Security.Cryptography (62)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
63
internal static partial bool PushX509StackField(
SafeX509StackHandle
stack, SafeX509Handle x509);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs (1)
25
internal static partial SafePkcs7Handle Pkcs7CreateCertificateCollection(
SafeX509StackHandle
certs);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (5)
144
private static partial SafeX509StoreHandle CryptoNative_X509ChainNew(
SafeX509StackHandle
systemTrust,
SafeX509StackHandle
userTrust);
146
internal static SafeX509StoreHandle X509ChainNew(
SafeX509StackHandle
systemTrust,
SafeX509StackHandle
userTrust)
185
SafeX509StackHandle
extraCerts);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (12)
13
internal static partial
SafeX509StackHandle
NewX509Stack();
19
internal static partial int GetX509StackFieldCount(
SafeX509StackHandle
stack);
29
internal static partial IntPtr GetX509StackField(
SafeX509StackHandle
stack, int loc);
39
private static partial int CryptoNative_X509StackAddDirectoryStore(
SafeX509StackHandle
stack, string storePath);
41
internal static void X509StackAddDirectoryStore(
SafeX509StackHandle
stack, string storePath)
50
private static partial int CryptoNative_X509StackAddMultiple(
SafeX509StackHandle
dest,
SafeX509StackHandle
src);
52
internal static void X509StackAddMultiple(
SafeX509StackHandle
dest,
SafeX509StackHandle
src)
83
internal static
SafeX509StackHandle
InvalidHandle =>
84
SafeHandleCache<
SafeX509StackHandle
>.GetInvalidHandle(() => new SafeX509StackHandle());
88
if (!SafeHandleCache<
SafeX509StackHandle
>.IsCachedInvalidHandle(this))
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
19
internal static partial
SafeX509StackHandle
X509StoreCtxGetChain(SafeX509StoreCtxHandle ctx);
System\Security\Cryptography\X509Certificates\OpenSslCachedDirectoryStoreProvider.cs (4)
22
private
SafeX509StackHandle
? _nativeCollection;
37
internal
SafeX509StackHandle
GetNativeCollection()
39
SafeX509StackHandle
? ret = _nativeCollection;
57
SafeX509StackHandle
newColl = Interop.Crypto.NewX509Stack();
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (19)
31
private static Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
>? s_nativeCollections;
54
Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
> nativeColls = GetCollections();
55
SafeX509StackHandle
nativeColl = _isRoot ? nativeColls.Item1 : nativeColls.Item2;
66
internal static void GetNativeCollections(out
SafeX509StackHandle
root, out
SafeX509StackHandle
intermediate)
68
Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
> nativeColls = GetCollections();
87
private static Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
> GetCollections()
90
Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
>? ret = s_nativeCollections;
142
private static Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
> LoadMachineStores()
148
SafeX509StackHandle
rootStore = Interop.Crypto.NewX509Stack();
150
SafeX509StackHandle
intermedStore = Interop.Crypto.NewX509Stack();
306
Tuple<
SafeX509StackHandle
,
SafeX509StackHandle
> newCollections =
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (2)
78
private static void PushHandle(IntPtr certPtr,
SafeX509StackHandle
publicCerts)
96
using (
SafeX509StackHandle
certs = Interop.Crypto.NewX509Stack())
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (17)
47
private readonly
SafeX509StackHandle
_untrustedLookup;
56
SafeX509StackHandle
untrusted,
102
out
SafeX509StackHandle
systemTrust,
103
out
SafeX509StackHandle
systemIntermediate);
106
SafeX509StackHandle
? untrusted = null;
147
SafeX509StackHandle
untrusted,
148
SafeX509StackHandle
systemTrust)
152
using (
SafeX509StackHandle
customTrust = Interop.Crypto.NewX509Stack())
158
SafeX509StackHandle
toAdd =
167
return Interop.Crypto.X509ChainNew(customTrust,
SafeX509StackHandle
.InvalidHandle);
187
SafeX509StackHandle
untrusted = _untrustedLookup;
277
using (
SafeX509StackHandle
chainStack = Interop.Crypto.X509StoreCtxGetChain(_storeCtx))
361
using (
SafeX509StackHandle
chainStack = Interop.Crypto.X509StoreCtxGetChain(_storeCtx))
497
using (
SafeX509StackHandle
chainStack = Interop.Crypto.X509StoreCtxGetChain(_storeCtx))
850
using (
SafeX509StackHandle
chainStack = Interop.Crypto.X509StoreCtxGetChain(_storeCtx))
1287
private static void AddToStackAndUpRef(SafeX509Handle cert,
SafeX509StackHandle
stack)
1301
private static void AddToStackAndUpRef(IntPtr cert,
SafeX509StackHandle
stack)