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)
236if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 238if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 259while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 319else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 364token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 372else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 631if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 652if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 678if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 684else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 791if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 871if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 885if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 894else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (14)
883if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 891if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 913if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1011if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1022if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1185if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1188NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1204if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1207NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1336return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1344return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1352return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1360return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (4)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 91if (retVal.ErrorCode == SecurityStatusPalErrorCode.OK || 92retVal.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 146if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";