58 references to SecurityStatusPalErrorCode
System.Net.Security (58)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
670
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, GetSslError(ret, errorCode));
672
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
675
internal static
SecurityStatusPalErrorCode
DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken token)
694
return
SecurityStatusPalErrorCode
.CredentialsNeeded;
744
return
SecurityStatusPalErrorCode
.ContinueNeeded;
753
return stateOk ?
SecurityStatusPalErrorCode
.OK :
SecurityStatusPalErrorCode
.ContinueNeeded;
System\Net\Security\NegotiateStream.cs (1)
936
(int)
SecurityStatusPalErrorCode
.LogonDenied => new InvalidCredentialException(SR.net_auth_bad_client_creds, e),
System\Net\Security\SslStream.IO.cs (15)
98
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.TryAgain);
237
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
239
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.NoRenegotiation)
260
while (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.ContinueNeeded);
344
else if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
389
token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.IllegalMessage)
397
else if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
656
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.TryAgain)
677
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
703
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.TryAgain)
709
else if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
816
if (status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
904
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
918
if (status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
927
else if (status.ErrorCode ==
SecurityStatusPalErrorCode
.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (12)
884
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.HandshakeStarted)
892
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
914
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.CredentialsNeeded)
1014
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
1025
if (NetEventSource.Log.IsEnabled() && status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
1210
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
1229
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
1361
return ((Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK) && (Status.ErrorCode !=
SecurityStatusPalErrorCode
.ContinueNeeded));
1369
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK);
1377
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate);
1385
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (21)
75
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, ex);
92
if (retVal.ErrorCode ==
SecurityStatusPalErrorCode
.OK ||
93
retVal.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
102
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, ex);
109
Interop.Ssl.SslErrorCode.SSL_ERROR_RENEGOTIATE => new SecurityStatusPal(
SecurityStatusPalErrorCode
.Renegotiate),
110
Interop.Ssl.SslErrorCode.SSL_ERROR_ZERO_RETURN => new SecurityStatusPal(
SecurityStatusPalErrorCode
.ContextExpired),
111
Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_X509_LOOKUP => new SecurityStatusPal(
SecurityStatusPalErrorCode
.CredentialsNeeded),
113
Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_READ => new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK),
114
_ => new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, new Interop.OpenSsl.SslException((int)errorCode))
147
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
188
SecurityStatusPalErrorCode
errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer, ref token);
191
if (errorCode ==
SecurityStatusPalErrorCode
.CredentialsNeeded)
202
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.CredentialsNeeded);
223
if (errorCode ==
SecurityStatusPalErrorCode
.OK && sslAuthenticationOptions.IsServer
227
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, Interop.OpenSsl.CreateSslException(SR.net_alpn_failed));
235
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, exc);
247
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
264
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
270
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
275
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, Interop.Crypto.CreateOpenSslCryptographicException());
279
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, new Interop.OpenSsl.SslException((int)code));
System\Net\SecurityStatusPal.cs (2)
8
public readonly
SecurityStatusPalErrorCode
ErrorCode;
11
public SecurityStatusPal(
SecurityStatusPalErrorCode
errorCode, Exception? exception = null)