21 references to OpenSsl
System.Net.Security (21)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
98throw Interop.OpenSsl.CreateSslException(SR.net_ssl_get_default_sigalgs_failed);
System\Net\CertificateValidationPal.Unix.cs (2)
39IntPtr remoteCertificate = Interop.OpenSsl.GetPeerCertificate((SafeSslHandle)securityContext); 58Interop.OpenSsl.GetPeerCertificateChain((SafeSslHandle)securityContext))
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (3)
10using OpenSsl = Interop.OpenSsl; 34throw OpenSsl.CreateSslException(SR.net_allocate_ssl_context_failed); 41throw OpenSsl.CreateSslException(SR.net_allocate_ssl_context_failed);
System\Net\Security\SslConnectionInfo.Linux.cs (1)
42throw Interop.OpenSsl.CreateSslException(SR.net_ssl_get_connection_info_failed);
System\Net\Security\SslStreamPal.Unix.cs (14)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 70Interop.Ssl.SslErrorCode errorCode = Interop.OpenSsl.Encrypt((SafeSslHandle)securityContext, input.Span, ref token); 88int resultSize = Interop.OpenSsl.Decrypt((SafeSslHandle)securityContext, buffer, out Interop.Ssl.SslErrorCode errorCode); 114_ => new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)errorCode)) 127throw Interop.OpenSsl.CreateSslException(SR.net_ssl_invalid_certificate); 132bindingHandle = Interop.OpenSsl.QueryChannelBinding( 145SecurityStatusPal status = Interop.OpenSsl.SslRenegotiate((SafeSslHandle)context, out _); 169Interop.OpenSsl.UpdateClientCertificate((SafeSslHandle)context!, sslAuthenticationOptions); 185context = Interop.OpenSsl.AllocateSslHandle(sslAuthenticationOptions); 188SecurityStatusPalErrorCode errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer, ref token); 208errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, ReadOnlySpan<byte>.Empty, ref token); 215errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, ReadOnlySpan<byte>.Empty, ref token); 227token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.OpenSsl.CreateSslException(SR.net_alpn_failed)); 279return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)code));