54 references to SecurityStatusPalErrorCode
System.Net.Security (54)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
673return new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, GetSslError(ret, errorCode)); 675return new SecurityStatusPal(SecurityStatusPalErrorCode.OK); 678internal static unsafe SecurityStatusPalErrorCode DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, out int consumed, ref ProtocolToken token) 726return SecurityStatusPalErrorCode.CredentialsNeeded; 770return SecurityStatusPalErrorCode.ContinueNeeded; 779return stateOk ? SecurityStatusPalErrorCode.OK : SecurityStatusPalErrorCode.ContinueNeeded;
System\Net\Security\NegotiateStream.cs (1)
944(int)SecurityStatusPalErrorCode.LogonDenied => new InvalidCredentialException(SR.net_auth_bad_client_creds, e),
System\Net\Security\SslStream.IO.cs (13)
219if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 221if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 242while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 326else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 371token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 379else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 693if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 714if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 740if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 746else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 907if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 921if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 930else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (14)
854if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 862if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 884if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 984waitToken.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain); 996if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1031if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1044if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1290if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1309if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1442return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1450return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1458return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1466return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (17)
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)) 155if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 196SecurityStatusPalErrorCode errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, inputBuffer, out consumed, ref token); 198if (errorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 209token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 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));
System\Net\SecurityStatusPal.cs (2)
8public readonly SecurityStatusPalErrorCode ErrorCode; 11public SecurityStatusPal(SecurityStatusPalErrorCode errorCode, Exception? exception = null)