30 references to SafeSslContextHandle
System.Net.Security (30)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (10)
35
private sealed class SafeSslContextCache : SafeHandleCache<SslContextCacheKey,
SafeSslContextHandle
> { }
181
internal static
SafeSslContextHandle
GetOrCreateSslContextHandle(SslAuthenticationOptions sslAuthenticationOptions, bool allowCached)
206
internal static unsafe
SafeSslContextHandle
AllocateSslContext(SslAuthenticationOptions sslAuthenticationOptions, SslProtocols protocols, bool enableResume)
211
SafeSslContextHandle
sslCtx = Ssl.SslCtxCreate(Ssl.SslMethods.SSLv23_method);
388
using
SafeSslContextHandle
sslCtxHandle = GetOrCreateSslContextHandle(sslAuthenticationOptions, cacheSslContext);
951
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
978
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
1047
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);
388
public
SafeSslContextHandle
? SslContextHandle;
416
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))