19 instantiations of SecurityStatusPal
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
670return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, GetSslError(ret, errorCode)); 672return new SecurityStatusPal(SecurityStatusPalErrorCode.OK);
System\Net\Security\SslStream.IO.cs (1)
98token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
System\Net\Security\SslStreamPal.Unix.cs (16)
75token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 102return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 109Interop.Ssl.SslErrorCode.SSL_ERROR_RENEGOTIATE => new SecurityStatusPal(SecurityStatusPalErrorCode.Renegotiate), 110Interop.Ssl.SslErrorCode.SSL_ERROR_ZERO_RETURN => new SecurityStatusPal(SecurityStatusPalErrorCode.ContextExpired), 111Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_X509_LOOKUP => new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded), 113Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_READ => new SecurityStatusPal(SecurityStatusPalErrorCode.OK), 114_ => new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)errorCode)) 202token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 227token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.OpenSsl.CreateSslException(SR.net_alpn_failed)); 231token.Status = new SecurityStatusPal(errorCode); 235token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc); 247return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 264return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 270return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 275return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.Crypto.CreateOpenSslCryptographicException()); 279return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)code));
17 references to SecurityStatusPal
System.Net.Security (17)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
663internal static SecurityStatusPal SslRenegotiate(SafeSslHandle sslContext, out byte[]? outputBuffer)
System\Net\Security\SslStream.IO.cs (3)
804private SecurityStatusPal DecryptData(int frameSize) 806SecurityStatusPal status; 903SecurityStatusPal status = DecryptData(payloadBytes);
System\Net\Security\SslStream.Protocol.cs (5)
1022internal SecurityStatusPal Decrypt(Span<byte> buffer, out int outputOffset, out int outputCount) 1024SecurityStatusPal status = SslStreamPal.DecryptMessage(_securityContext!, buffer, out outputOffset, out outputCount); 1207SecurityStatusPal status; 1226SecurityStatusPal status; 1352internal SecurityStatusPal Status;
System\Net\Security\SslStreamPal.Unix.cs (8)
15public static Exception GetException(SecurityStatusPal status) 28public static SecurityStatusPal SelectApplicationProtocol( 81public static SecurityStatusPal DecryptMessage(SafeDeleteSslContext securityContext, Span<byte> buffer, out int offset, out int count) 90SecurityStatusPal retVal = MapNativeErrorCode(errorCode); 106private static SecurityStatusPal MapNativeErrorCode(Interop.Ssl.SslErrorCode errorCode) => 145SecurityStatusPal status = Interop.OpenSsl.SslRenegotiate((SafeSslHandle)context, out _); 241public static SecurityStatusPal ApplyAlertToken(SafeDeleteContext? securityContext, TlsAlertType alertType, TlsAlertMessage alertMessage) 251public static SecurityStatusPal ApplyShutdownToken(SafeDeleteSslContext context)