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