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