34 references to SafeSslContextHandle
System.Net.Security (34)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (12)
28
private sealed class SafeSslContextCache : SafeHandleCache<SslContextCacheKey,
SafeSslContextHandle
> { }
151
internal static
SafeSslContextHandle
GetOrCreateSslContextHandle(SslAuthenticationOptions sslAuthenticationOptions, bool allowCached)
176
SafeSslContextHandle
? handle = AllocateSslContext(sslAuthenticationOptions, protocols, allowCached);
183
SafeSslContextHandle
cached = sslAuthenticationOptions.CertificateContext!.SslContexts!.GetOrAdd(protocols | (hasAlpn ? FakeAlpnSslProtocol : SslProtocols.None), handle);
200
internal static unsafe
SafeSslContextHandle
AllocateSslContext(SslAuthenticationOptions sslAuthenticationOptions, SslProtocols protocols, bool enableResume)
205
SafeSslContextHandle
sslCtx = Ssl.SslCtxCreate(Ssl.SslMethods.SSLv23_method);
380
using
SafeSslContextHandle
sslCtxHandle = GetOrCreateSslContextHandle(sslAuthenticationOptions, cacheSslContext);
781
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
808
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
877
private static void SetSslCertificate(
SafeSslContextHandle
contextPtr, SafeX509Handle certPtr, SafeEvpPKeyHandle keyPtr)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs (1)
17
internal static partial void SslCtxSetProtocolOptions(
SafeSslContextHandle
ctx, SslProtocols protocols);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
29
internal static partial SafeSslHandle SslCreate(
SafeSslContextHandle
ctx);
355
public
SafeSslContextHandle
? SslContextHandle;
383
public static SafeSslHandle Create(
SafeSslContextHandle
context, bool isServer)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (7)
21
internal static partial
SafeSslContextHandle
SslCtxCreate(IntPtr method);
30
internal static partial int SslCtxSetData(
SafeSslContextHandle
ctx, IntPtr data);
36
internal static unsafe partial void SslCtxSetAlpnSelectCb(
SafeSslContextHandle
ctx, delegate* unmanaged<IntPtr, byte**, byte*, byte*, uint, IntPtr, int> callback, IntPtr arg);
39
internal static unsafe partial void SslCtxSetKeylogCallback(
SafeSslContextHandle
ctx, delegate* unmanaged<IntPtr, char*, void> callback);
42
internal static unsafe partial int SslCtxSetCaching(
SafeSslContextHandle
ctx, int mode, int cacheSize, int contextIdLength, Span<byte> contextId, delegate* unmanaged<IntPtr, IntPtr, int> neewSessionCallback, delegate* unmanaged<IntPtr, IntPtr, void> removeSessionCallback);
45
internal static unsafe partial void SslCtxRemoveSession(
SafeSslContextHandle
ctx, IntPtr session);
47
internal static bool AddExtraChainCertificates(
SafeSslContextHandle
ctx, ReadOnlyCollection<X509Certificate2> chain)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs (8)
16
internal static partial bool SslCtxAddExtraChainCert(
SafeSslContextHandle
ctx, SafeX509Handle x509);
19
internal static partial int SslCtxUseCertificate(
SafeSslContextHandle
ctx, SafeX509Handle certPtr);
22
internal static partial int SslCtxUsePrivateKey(
SafeSslContextHandle
ctx, SafeEvpPKeyHandle keyPtr);
25
internal static partial int SslCtxCheckPrivateKey(
SafeSslContextHandle
ctx);
28
internal static partial void SslCtxSetQuietShutdown(
SafeSslContextHandle
ctx);
32
internal static unsafe partial bool SslCtxSetCiphers(
SafeSslContextHandle
ctx, byte* cipherList, byte* cipherSuites);
36
internal static partial bool SetEncryptionPolicy(
SafeSslContextHandle
ctx, EncryptionPolicy policy);
39
internal static partial void SslCtxSetDefaultOcspCallback(
SafeSslContextHandle
ctx);
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
30
using (
SafeSslContextHandle
innerContext = Ssl.SslCtxCreate(Ssl.SslMethods.SSLv23_method))
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
26
internal readonly ConcurrentDictionary<SslProtocols,
SafeSslContextHandle
> SslContexts;
60
SslContexts = new ConcurrentDictionary<SslProtocols,
SafeSslContextHandle
>();