1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
36 references to ErrorCode
System.Net.Security (36)
System\Net\Security\SslStream.IO.cs (14)
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) 656if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 677if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 703if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 709else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 816if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 904if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 918if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 927else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (14)
884if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 892if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 914if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1014if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1025if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1210if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1213NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1229if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1232NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1361return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1369return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1377return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1385return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (4)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 92if (retVal.ErrorCode == SecurityStatusPalErrorCode.OK || 93retVal.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 147if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";