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