56 references to SecurityStatusPalErrorCode
System.Net.Security (56)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
664
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, GetSslError(ret, errorCode));
666
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
669
internal static
SecurityStatusPalErrorCode
DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken token)
688
return
SecurityStatusPalErrorCode
.CredentialsNeeded;
746
return
SecurityStatusPalErrorCode
.ContinueNeeded;
755
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)
700
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.TryAgain)
721
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
747
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.TryAgain)
753
else if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
860
if (status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
948
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
962
if (status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
971
else if (status.ErrorCode ==
SecurityStatusPalErrorCode
.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (12)
853
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.HandshakeStarted)
861
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
883
if (token.Status.ErrorCode ==
SecurityStatusPalErrorCode
.CredentialsNeeded)
983
if (token.Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
994
if (NetEventSource.Log.IsEnabled() && status.ErrorCode ==
SecurityStatusPalErrorCode
.OK)
1219
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
1238
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
1371
return ((Status.ErrorCode !=
SecurityStatusPalErrorCode
.OK) && (Status.ErrorCode !=
SecurityStatusPalErrorCode
.ContinueNeeded));
1379
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.OK);
1387
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate);
1395
return (Status.ErrorCode ==
SecurityStatusPalErrorCode
.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (19)
76
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, ex);
93
if (retVal.ErrorCode ==
SecurityStatusPalErrorCode
.OK ||
94
retVal.ErrorCode ==
SecurityStatusPalErrorCode
.Renegotiate)
103
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, ex);
110
Interop.Ssl.SslErrorCode.SSL_ERROR_RENEGOTIATE => new SecurityStatusPal(
SecurityStatusPalErrorCode
.Renegotiate),
111
Interop.Ssl.SslErrorCode.SSL_ERROR_ZERO_RETURN => new SecurityStatusPal(
SecurityStatusPalErrorCode
.ContextExpired),
112
Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_X509_LOOKUP => new SecurityStatusPal(
SecurityStatusPalErrorCode
.CredentialsNeeded),
114
Interop.Ssl.SslErrorCode.SSL_ERROR_WANT_READ => new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK),
115
_ => new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, new Interop.OpenSsl.SslException((int)errorCode))
148
if (status.ErrorCode !=
SecurityStatusPalErrorCode
.OK)
189
SecurityStatusPalErrorCode
errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer, ref token);
192
if (errorCode ==
SecurityStatusPalErrorCode
.CredentialsNeeded)
203
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.CredentialsNeeded);
223
token.Status = new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, exc);
238
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
255
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
261
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.OK);
266
return new SecurityStatusPal(
SecurityStatusPalErrorCode
.InternalError, Interop.Crypto.CreateOpenSslCryptographicException());
270
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)