19 instantiations of SecurityStatusPal
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
509return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, GetSslError(ret, errorCode)); 511return new SecurityStatusPal(SecurityStatusPalErrorCode.OK);
System\Net\Security\SslStream.IO.cs (1)
97token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
System\Net\Security\SslStreamPal.Unix.cs (16)
74token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 101return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 108Interop.Ssl.SslErrorCode.SSL_ERROR_RENEGOTIATE => new SecurityStatusPal(SecurityStatusPalErrorCode.Renegotiate), 109Interop.Ssl.SslErrorCode.SSL_ERROR_ZERO_RETURN => new SecurityStatusPal(SecurityStatusPalErrorCode.ContextExpired), 110Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_X509_LOOKUP => new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded), 112Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_READ => new SecurityStatusPal(SecurityStatusPalErrorCode.OK), 113_ => new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, new Interop.OpenSsl.SslException((int)errorCode)) 201token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 226token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.OpenSsl.CreateSslException(SR.net_alpn_failed)); 230token.Status = new SecurityStatusPal(errorCode); 234token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc); 245return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 262return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 268return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 273return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.Crypto.CreateOpenSslCryptographicException()); 277return 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)
502internal static SecurityStatusPal SslRenegotiate(SafeSslHandle sslContext, out byte[]? outputBuffer)
System\Net\Security\SslStream.IO.cs (3)
779private SecurityStatusPal DecryptData(int frameSize) 781SecurityStatusPal status; 870SecurityStatusPal status = DecryptData(payloadBytes);
System\Net\Security\SslStream.Protocol.cs (5)
1019internal SecurityStatusPal Decrypt(Span<byte> buffer, out int outputOffset, out int outputCount) 1021SecurityStatusPal status = SslStreamPal.DecryptMessage(_securityContext!, buffer, out outputOffset, out outputCount); 1182SecurityStatusPal status; 1201SecurityStatusPal status; 1327internal SecurityStatusPal Status;
System\Net\Security\SslStreamPal.Unix.cs (8)
15public static Exception GetException(SecurityStatusPal status) 27public static SecurityStatusPal SelectApplicationProtocol( 80public static SecurityStatusPal DecryptMessage(SafeDeleteSslContext securityContext, Span<byte> buffer, out int offset, out int count) 89SecurityStatusPal retVal = MapNativeErrorCode(errorCode); 105private static SecurityStatusPal MapNativeErrorCode(Interop.Ssl.SslErrorCode errorCode) => 144SecurityStatusPal status = Interop.OpenSsl.SslRenegotiate((SafeSslHandle)context, out _); 240public static SecurityStatusPal ApplyAlertToken(SafeDeleteContext? securityContext, TlsAlertType alertType, TlsAlertMessage alertMessage) 249public static SecurityStatusPal ApplyShutdownToken(SafeDeleteSslContext context)