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