71 references to SafeSslContextHandle
System.Net.Security (71)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (35)
2341
internal static partial global::Microsoft.Win32.SafeHandles.SafeSslHandle SslCreate(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx)
2351
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4583
internal static partial global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
SslCtxCreate(nint @method)
4588
global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
__retVal = default;
4591
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
4640
internal static partial int SslCtxSetData(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, nint data)
4647
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4684
internal static unsafe partial void SslCtxSetAlpnSelectCb(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, delegate* unmanaged<nint, byte**, byte*, byte*, uint, nint, int> callback, nint arg)
4690
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4718
internal static unsafe partial void SslCtxSetKeylogCallback(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, delegate* unmanaged<nint, char*, void> callback)
4724
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4752
internal static unsafe partial int SslCtxSetCaching(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, int mode, int cacheSize, int contextIdLength, global::System.Span<byte> contextId, delegate* unmanaged<nint, nint, int> neewSessionCallback, delegate* unmanaged<nint, nint, void> removeSessionCallback)
4759
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4790
internal static unsafe partial void SslCtxRemoveSession(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, nint session)
4796
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4824
internal static unsafe partial void SslCtxSetCertVerifyCallback(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, delegate* unmanaged<nint, nint, int> callback)
4830
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4874
internal static partial void SslCtxSetProtocolOptions(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, global::System.Security.Authentication.SslProtocols protocols)
4880
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4908
internal static partial bool SslCtxAddExtraChainCert(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, global::Microsoft.Win32.SafeHandles.SafeX509Handle x509)
4918
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4952
internal static partial int SslCtxUseCertificate(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, global::Microsoft.Win32.SafeHandles.SafeX509Handle certPtr)
4961
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
4993
internal static partial int SslCtxUsePrivateKey(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, global::System.Security.Cryptography.SafeEvpPKeyHandle keyPtr)
5002
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
5034
internal static partial int SslCtxCheckPrivateKey(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx)
5041
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
5070
internal static partial void SslCtxSetQuietShutdown(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx)
5076
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
5104
internal static unsafe partial bool SslCtxSetCiphers(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, byte* cipherList, byte* cipherSuites)
5112
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
5143
internal static partial bool SetEncryptionPolicy(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx, global::System.Net.Security.EncryptionPolicy policy)
5151
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
5182
internal static partial void SslCtxSetDefaultOcspCallback(global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
ctx)
5188
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeSslContextHandle
>.ManagedToUnmanagedIn __ctx_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (11)
46
private sealed class SafeSslContextCache : SafeHandleCache<SslContextCacheKey,
SafeSslContextHandle
> { }
192
internal static
SafeSslContextHandle
GetOrCreateSslContextHandle(SslAuthenticationOptions sslAuthenticationOptions, bool allowCached, bool enableResume)
217
internal static unsafe
SafeSslContextHandle
AllocateSslContext(SslAuthenticationOptions sslAuthenticationOptions, SslProtocols protocols, bool enableResume)
222
SafeSslContextHandle
sslCtx = Ssl.SslCtxCreate(Ssl.SslMethods.SSLv23_method);
368
SafeSslContextHandle
? preallocatedSslCtx = sslAuthenticationOptions.PreallocatedSslContext;
413
SafeSslContextHandle
sslCtxHandle = preallocatedSslCtx ?? GetOrCreateSslContextHandle(sslAuthenticationOptions, cacheSslContext, cacheSslContext);
1298
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
1327
SafeSslContextHandle
? ctxHandle = gch.Target as
SafeSslContextHandle
;
1399
private static void SetSslCertificate(
SafeSslContextHandle
contextPtr, SafeX509Handle certPtr, SafeEvpPKeyHandle keyPtr)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs (1)
14
internal static partial void SslCtxSetProtocolOptions(
SafeSslContextHandle
ctx, SslProtocols protocols);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
30
internal static partial SafeSslHandle SslCreate(
SafeSslContextHandle
ctx);
493
public
SafeSslContextHandle
? SslContextHandle;
536
public static SafeSslHandle Create(
SafeSslContextHandle
context, SslAuthenticationOptions options)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (8)
22
internal static partial
SafeSslContextHandle
SslCtxCreate(IntPtr method);
31
internal static partial int SslCtxSetData(
SafeSslContextHandle
ctx, IntPtr data);
37
internal static unsafe partial void SslCtxSetAlpnSelectCb(
SafeSslContextHandle
ctx, delegate* unmanaged<IntPtr, byte**, byte*, byte*, uint, IntPtr, int> callback, IntPtr arg);
40
internal static unsafe partial void SslCtxSetKeylogCallback(
SafeSslContextHandle
ctx, delegate* unmanaged<IntPtr, char*, void> callback);
43
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);
46
internal static unsafe partial void SslCtxRemoveSession(
SafeSslContextHandle
ctx, IntPtr session);
48
internal static bool AddExtraChainCertificates(
SafeSslContextHandle
ctx, ReadOnlyCollection<X509Certificate2> chain)
68
internal static unsafe partial void SslCtxSetCertVerifyCallback(
SafeSslContextHandle
ctx, delegate* unmanaged<IntPtr, IntPtr, int> callback);
src\runtime\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\SslAuthenticationOptions.OpenSsl.cs (1)
26
internal
SafeSslContextHandle
? PreallocatedSslContext { get; set; }
System\Net\Security\TlsContext.OpenSsl.cs (3)
19
private
SafeSslContextHandle
? _sslContext;
42
SafeSslContextHandle
? ctx = _sslContext;
69
SafeSslContextHandle
? ctx = _sslContext;