20 references to OpenSsl
System.Net.Security (20)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
98
throw Interop.
OpenSsl
.CreateSslException(SR.net_ssl_get_default_sigalgs_failed);
System\Net\CertificateValidationPal.Unix.cs (2)
39
IntPtr remoteCertificate = Interop.
OpenSsl
.GetPeerCertificate((SafeSslHandle)securityContext);
58
Interop.
OpenSsl
.GetPeerCertificateChain((SafeSslHandle)securityContext))
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (3)
10
using OpenSsl = Interop.
OpenSsl
;
34
throw
OpenSsl
.CreateSslException(SR.net_allocate_ssl_context_failed);
43
throw
OpenSsl
.CreateSslException(SR.net_allocate_ssl_context_failed);
System\Net\Security\SslConnectionInfo.Linux.cs (1)
42
throw Interop.
OpenSsl
.CreateSslException(SR.net_ssl_get_connection_info_failed);
System\Net\Security\SslStreamPal.Unix.cs (13)
17
return status.Exception ?? new Interop.
OpenSsl
.SslException((int)status.ErrorCode);
71
Interop.Ssl.SslErrorCode errorCode = Interop.
OpenSsl
.Encrypt((SafeSslHandle)securityContext, input.Span, ref token);
96
bytesWritten = Interop.
OpenSsl
.Decrypt(
122
_ => new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.
OpenSsl
.SslException((int)errorCode))
135
throw Interop.
OpenSsl
.CreateSslException(SR.net_ssl_invalid_certificate);
140
bindingHandle = Interop.
OpenSsl
.QueryChannelBinding(
153
SecurityStatusPal status = Interop.
OpenSsl
.SslRenegotiate((SafeSslHandle)context, out _);
177
Interop.
OpenSsl
.UpdateClientCertificate((SafeSslHandle)context!, sslAuthenticationOptions);
193
context = Interop.
OpenSsl
.AllocateSslHandle(sslAuthenticationOptions);
196
SecurityStatusPalErrorCode errorCode = Interop.
OpenSsl
.DoSslHandshake((SafeSslHandle)context, inputBuffer, out consumed, ref token);
215
errorCode = Interop.
OpenSsl
.DoSslHandshake((SafeSslHandle)context, inputBuffer.Slice(consumed), out int c, ref token);
223
errorCode = Interop.
OpenSsl
.DoSslHandshake((SafeSslHandle)context, inputBuffer.Slice(consumed), out int c, ref token);
278
return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.
OpenSsl
.SslException((int)code));