199 references to SafeSslHandle
System.Net.Security (199)
_generated\0\LibraryImports.g.cs (93)
2427internal static partial global::Microsoft.Win32.SafeHandles.SafeSslHandle SslCreate(global::Microsoft.Win32.SafeHandles.SafeSslContextHandle ctx) 2433global::Microsoft.Win32.SafeHandles.SafeSslHandle __retVal = default; 2436global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 2479internal static partial global::Interop.Ssl.SslErrorCode SslGetError(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, int ret) 2486global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2516internal static partial void SslSetQuietShutdown(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, int mode) 2522global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2559internal static partial void SslSetConnectState(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 2565global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2594internal static partial void SslSetAcceptState(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 2600global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2629internal static unsafe partial int SslSetAlpnProtos(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* protos, int len) 2636global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2666internal static partial nint SslGetVersion(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 2673global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2703internal static partial bool SslSetTlsExtHostName(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, string host) 2713global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2757internal static unsafe partial int SslSetSession(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint session) 2764global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2794internal static partial void SslGetAlpnSelected(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, out nint protocol, out int len) 2802global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2834internal static partial int SslWrite(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, ref byte buf, int num, out global::Interop.Ssl.SslErrorCode error) 2843global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2879internal static partial int SslRead(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, ref byte buf, int num, out global::Interop.Ssl.SslErrorCode error) 2888global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2949internal static partial int SslRenegotiate(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, out global::Interop.Ssl.SslErrorCode error) 2957global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 2989internal static partial bool IsSslRenegotiatePending(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 2997global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3038internal static partial int SslShutdown(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3045global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3075internal static partial void SslSetBio(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::Microsoft.Win32.SafeHandles.SafeBioHandle rbio, global::Microsoft.Win32.SafeHandles.SafeBioHandle wbio) 3085global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3120internal static partial int SslSetFd(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::System.Net.Sockets.SafeSocketHandle socket) 3129global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3162internal static partial void SslSetAcceptMovingWriteBuffer(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3168global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3197internal static partial int SslDoHandshake(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, out global::Interop.Ssl.SslErrorCode error) 3206global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3241internal static unsafe partial int SslHandshake(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* inputPtr, int inputLen, out int consumed, byte* outputPtr, int outputCap, out int outputWritten, out int outputPending, out global::Interop.Ssl.SslErrorCode errorCode) 3253global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3291internal static unsafe partial int SslEncrypt(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* plaintextPtr, int plaintextLen, byte* outputPtr, int outputCap, out int outputWritten, out int outputPending, out global::Interop.Ssl.SslErrorCode errorCode) 3302global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3339internal static unsafe partial int SslDecrypt(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* inputPtr, int inputLen, out int consumed, byte* outputPtr, int outputCap, out int leftoverOffset, out int leftoverLength, out global::Interop.Ssl.SslErrorCode errorCode) 3351global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3389internal static partial bool IsSslStateOK(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3397global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3716internal static partial nint SslGetPeerCertificate(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3723global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3753internal static partial void SslUpdateOcspStaple(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint cert) 3759global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3788internal static partial nint SslGetCertificate(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3795global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3833private static partial global::Microsoft.Win32.SafeHandles.SafeSharedX509StackHandle SslGetPeerCertChain_private(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3843global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3885internal static partial int SslGetPeerFinished(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint buf, int count) 3892global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3922internal static partial int SslGetFinished(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint buf, int count) 3929global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 3959internal static partial bool SslSessionReused(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 3967global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4025internal static partial nint SslGetSession(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 4032global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4070private static partial global::Microsoft.Win32.SafeHandles.SafeSharedX509NameStackHandle SslGetClientCAList_private(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 4080global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4122internal static partial bool SslGetCurrentCipherId(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, out int cipherId) 4131global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4166private static unsafe partial byte* GetOpenSslCipherSuiteName(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, int cipherSuite, out int isTls12OrLower) 4174global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4206internal static partial void SslSetVerifyPeer(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, bool failIfNoPeerCert) 4213global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4243internal static partial int SslSetRetryVerify(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl) 4250global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4288internal static partial int SslSetData(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint data) 4295global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4333internal static partial int SslUseCertificate(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::Microsoft.Win32.SafeHandles.SafeX509Handle certPtr) 4342global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4375internal static partial int SslUsePrivateKey(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::System.Security.Cryptography.SafeEvpPKeyHandle keyPtr) 4384global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4417internal static unsafe partial void SslSetClientCertCallback(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, int set) 4423global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4452internal static partial void SslSetPostHandshakeAuth(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, int value) 4458global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4487internal static unsafe partial int SslSetSigalgs(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* str) 4494global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4524internal static unsafe partial int SslSetClientSigalgs(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* str) 4531global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4617internal static partial bool SslAddExtraChainCert(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::Microsoft.Win32.SafeHandles.SafeX509Handle x509) 4627global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4663private static unsafe partial bool SslAddClientCAs(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, nint* x509s, int count) 4671global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new(); 4704private static unsafe partial void CryptoNative_SslStapleOcsp(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, byte* buf, int len) 4710global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeSslHandle>.ManagedToUnmanagedIn __ssl_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (17)
106internal static SafeChannelBindingHandle? QueryChannelBinding(SafeSslHandle context, ChannelBindingKind bindingType) 326internal static void UpdateClientCertificate(SafeSslHandle ssl, SslAuthenticationOptions sslAuthenticationOptions) 361internal static unsafe SafeSslHandle AllocateSslHandle(SslAuthenticationOptions sslAuthenticationOptions) 363SafeSslHandle? sslHandle = null; 416sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions); 619internal static unsafe void ConfigureSignatureAlgorithms(SafeSslHandle sslHandle, bool enablePss, bool enablePkcs1) 687internal static SecurityStatusPal SslRenegotiate(SafeSslHandle sslContext, out byte[]? outputBuffer) 708internal static unsafe SecurityStatusPalErrorCode DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, out int consumed, ref ProtocolToken token) 821internal static unsafe Ssl.SslErrorCode Encrypt(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken outToken) 918private static unsafe void DrainOutputBioSpill(SafeSslHandle context, ref ProtocolToken outToken) 936SafeSslHandle context, 997internal static IntPtr GetPeerCertificate(SafeSslHandle context) 1002internal static SafeSharedX509StackHandle GetPeerCertificateChain(SafeSslHandle context) 1011private static void QueryUniqueChannelBinding(SafeSslHandle context, SafeChannelBindingHandle bindingHandle) 1029SafeSslHandle? sslHandle = null; 1040sslHandle = options!.SafeSslHandle as SafeSslHandle; 1159static (X509Certificate2 certificate, X509Chain chain) GetPeerCertChainFromStoreCtx(SafeSslHandle sslHandle, IntPtr storeCtx, SslAuthenticationOptions options)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (57)
30internal static partial SafeSslHandle SslCreate(SafeSslContextHandle ctx); 33internal static partial SslErrorCode SslGetError(SafeSslHandle ssl, int ret); 36internal static partial void SslSetQuietShutdown(SafeSslHandle ssl, int mode); 42internal static partial void SslSetConnectState(SafeSslHandle ssl); 45internal static partial void SslSetAcceptState(SafeSslHandle ssl); 48internal static unsafe partial int SslSetAlpnProtos(SafeSslHandle ssl, byte* protos, int len); 51internal static partial IntPtr SslGetVersion(SafeSslHandle ssl); 55internal static partial bool SslSetTlsExtHostName(SafeSslHandle ssl, string host); 61internal static unsafe partial int SslSetSession(SafeSslHandle ssl, IntPtr session); 64internal static partial void SslGetAlpnSelected(SafeSslHandle ssl, out IntPtr protocol, out int len); 66internal static unsafe ReadOnlySpan<byte> SslGetAlpnSelected(SafeSslHandle ssl) 79internal static partial int SslWrite(SafeSslHandle ssl, ref byte buf, int num, out SslErrorCode error); 82internal static partial int SslRead(SafeSslHandle ssl, ref byte buf, int num, out SslErrorCode error); 103internal static partial int SslRenegotiate(SafeSslHandle ssl, out SslErrorCode error); 107internal static partial bool IsSslRenegotiatePending(SafeSslHandle ssl); 113internal static partial int SslShutdown(SafeSslHandle ssl); 116internal static partial void SslSetBio(SafeSslHandle ssl, SafeBioHandle rbio, SafeBioHandle wbio); 122internal static partial int SslSetFd(SafeSslHandle ssl, SafeSocketHandle socket); 125internal static partial void SslSetAcceptMovingWriteBuffer(SafeSslHandle ssl); 128internal static partial int SslDoHandshake(SafeSslHandle ssl, out SslErrorCode error); 132SafeSslHandle ssl, 144SafeSslHandle ssl, 155SafeSslHandle ssl, 167internal static partial bool IsSslStateOK(SafeSslHandle ssl); 214internal static partial IntPtr SslGetPeerCertificate(SafeSslHandle ssl); 217internal static partial void SslUpdateOcspStaple(SafeSslHandle ssl, IntPtr cert); 220internal static partial IntPtr SslGetCertificate(SafeSslHandle ssl); 226private static partial SafeSharedX509StackHandle SslGetPeerCertChain_private(SafeSslHandle ssl); 228internal static SafeSharedX509StackHandle SslGetPeerCertChain(SafeSslHandle ssl) 236internal static partial int SslGetPeerFinished(SafeSslHandle ssl, IntPtr buf, int count); 239internal static partial int SslGetFinished(SafeSslHandle ssl, IntPtr buf, int count); 243internal static partial bool SslSessionReused(SafeSslHandle ssl); 250internal static partial IntPtr SslGetSession(SafeSslHandle ssl); 256private static partial SafeSharedX509NameStackHandle SslGetClientCAList_private(SafeSslHandle ssl); 260internal static partial bool SslGetCurrentCipherId(SafeSslHandle ssl, out int cipherId); 263private static unsafe partial byte* GetOpenSslCipherSuiteName(SafeSslHandle ssl, int cipherSuite, out int isTls12OrLower); 266internal static partial void SslSetVerifyPeer(SafeSslHandle ssl, [MarshalAs(UnmanagedType.Bool)] bool failIfNoPeerCert); 269internal static partial int SslSetRetryVerify(SafeSslHandle ssl); 275internal static partial int SslSetData(SafeSslHandle ssl, IntPtr data); 281internal static partial int SslUseCertificate(SafeSslHandle ssl, SafeX509Handle certPtr); 284internal static partial int SslUsePrivateKey(SafeSslHandle ssl, SafeEvpPKeyHandle keyPtr); 287internal static unsafe partial void SslSetClientCertCallback(SafeSslHandle ssl, int set); 290internal static partial void SslSetPostHandshakeAuth(SafeSslHandle ssl, int value); 293internal static unsafe partial int SslSetSigalgs(SafeSslHandle ssl, byte* str); 296internal static unsafe partial int SslSetClientSigalgs(SafeSslHandle ssl, byte* str); 360internal static unsafe int SslSetAlpnProtos(SafeSslHandle ssl, List<SslApplicationProtocol> applicationProtocols) 368internal static unsafe int SslSetAlpnProtos(SafeSslHandle ssl, Span<byte> serializedProtocols) 378internal static partial bool SslAddExtraChainCert(SafeSslHandle ssl, SafeX509Handle x509); 382private static unsafe partial bool SslAddClientCAs(SafeSslHandle ssl, IntPtr* x509s, int count); 384internal static unsafe bool SslAddClientCAs(SafeSslHandle ssl, Span<IntPtr> x509handles) 393private static unsafe partial void CryptoNative_SslStapleOcsp(SafeSslHandle ssl, byte* buf, int len); 395internal static unsafe void SslStapleOcsp(SafeSslHandle ssl, ReadOnlySpan<byte> stapledResponse) 405internal static bool AddExtraChainCertificates(SafeSslHandle ssl, ReadOnlyCollection<X509Certificate2> chain) 424internal static unsafe string? GetOpenSslCipherSuiteName(SafeSslHandle ssl, TlsCipherSuite cipherSuite, out bool isTls12OrLower) 431internal static SafeSharedX509NameStackHandle SslGetClientCAList(SafeSslHandle ssl) 525public static SafeSslHandle Create(SafeSslContextHandle context, SslAuthenticationOptions options) 559SafeSslHandle handle = Interop.Ssl.SslCreate(context);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
257internal bool TrySetSession(SafeSslHandle sslHandle, string name)
System\Net\CertificateValidationPal.Unix.cs (4)
39IntPtr remoteCertificate = Interop.OpenSsl.GetPeerCertificate((SafeSslHandle)securityContext); 58Interop.OpenSsl.GetPeerCertificateChain((SafeSslHandle)securityContext)) 100if (ctx is not SafeSslHandle ssl) 141using (SafeSharedX509NameStackHandle names = Interop.Ssl.SslGetClientCAList((SafeSslHandle)securityContext))
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (2)
39using (SafeSslHandle ssl = SafeSslHandle.Create(innerContext, new SslAuthenticationOptions() { IsServer = false }))
System\Net\Security\SslConnectionInfo.Linux.cs (2)
11public void UpdateSslConnectionInfo(SafeSslHandle sslContext) 37private static TlsCipherSuite SslGetCurrentCipherSuite(SafeSslHandle ssl)
System\Net\Security\SslStreamPal.Unix.cs (14)
76Interop.Ssl.SslErrorCode errorCode = Interop.OpenSsl.Encrypt((SafeSslHandle)securityContext, input.Span, ref token); 102(SafeSslHandle)securityContext, 146(SafeSslHandle)securityContext, 158SecurityStatusPal status = Interop.OpenSsl.SslRenegotiate((SafeSslHandle)context, out _); 174connectionInfo.UpdateSslConnectionInfo((SafeSslHandle)securityContext); 182Interop.OpenSsl.UpdateClientCertificate((SafeSslHandle)context!, sslAuthenticationOptions); 201SecurityStatusPalErrorCode errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer, out consumed, ref token); 220errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer.Slice(consumed), out int c, ref token); 226if (token.Size == 0 && Interop.Ssl.IsSslRenegotiatePending((SafeSslHandle)context)) 228errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer.Slice(consumed), out int c, ref token); 258Interop.Ssl.SslSetQuietShutdown((SafeSslHandle)context, 0); 260int status = Interop.Ssl.SslShutdown((SafeSslHandle)context); 264status = Interop.Ssl.SslShutdown((SafeSslHandle)context); 270Interop.Ssl.SslErrorCode code = Interop.Ssl.SslGetError((SafeSslHandle)context, status);
System\Net\Security\TlsSession.cs (1)
512if (_securityContext is not Microsoft.Win32.SafeHandles.SafeSslHandle sslHandle ||
System\Net\Security\TlsSession.OpenSsl.cs (8)
224SafeSslHandle ssl = EnsureFdSslHandle(); 248SafeSslHandle ssl = (SafeSslHandle)_securityContext!; 272SafeSslHandle ssl = (SafeSslHandle)_securityContext!; 283private SafeSslHandle EnsureFdSslHandle() 285if (_securityContext is SafeSslHandle existing && !existing.IsInvalid) 289SafeSslHandle handle = Interop.OpenSsl.AllocateSslHandle(_options);