18 instantiations of SecurityStatusPal
System.Net.Security (18)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
673return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, GetSslError(ret, errorCode)); 675return new SecurityStatusPal(SecurityStatusPalErrorCode.OK);
System\Net\Security\SslStream.Protocol.cs (1)
984waitToken.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
System\Net\Security\SslStreamPal.Unix.cs (15)
76token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 110return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 117Interop.Ssl.SslErrorCode.SSL_ERROR_RENEGOTIATE => new SecurityStatusPal(SecurityStatusPalErrorCode.Renegotiate), 118Interop.Ssl.SslErrorCode.SSL_ERROR_ZERO_RETURN => new SecurityStatusPal(SecurityStatusPalErrorCode.ContextExpired), 119Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_X509_LOOKUP => new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded), 121Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_READ => new SecurityStatusPal(SecurityStatusPalErrorCode.OK), 122_ => new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)errorCode)) 209token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 227token.Status = new SecurityStatusPal(errorCode); 231token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc); 246return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 263return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 269return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 274return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.Crypto.CreateOpenSslCryptographicException()); 278return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)code));
15 references to SecurityStatusPal
System.Net.Security (15)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
666internal static SecurityStatusPal SslRenegotiate(SafeSslHandle sslContext, out byte[]? outputBuffer)
System\Net\Security\SslStream.IO.cs (1)
905SecurityStatusPal status = DecryptData(payloadBytes, destination, out int directWritten);
System\Net\Security\SslStream.Protocol.cs (5)
1013private SecurityStatusPal DecryptData(int frameSize, Span<byte> destination, out int bytesWritten) 1015SecurityStatusPal status; 1287SecurityStatusPal status; 1306SecurityStatusPal status; 1433internal SecurityStatusPal Status;
System\Net\Security\SslStreamPal.Unix.cs (8)
15public static Exception GetException(SecurityStatusPal status) 29public static SecurityStatusPal SelectApplicationProtocol( 82public static SecurityStatusPal DecryptMessage( 104SecurityStatusPal retVal = MapNativeErrorCode(errorCode); 114private static SecurityStatusPal MapNativeErrorCode(Interop.Ssl.SslErrorCode errorCode) => 153SecurityStatusPal status = Interop.OpenSsl.SslRenegotiate((SafeSslHandle)context, out _); 237public static SecurityStatusPal ApplyAlertToken( 250public static SecurityStatusPal ApplyShutdownToken(SafeDeleteSslContext context)