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) 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 (14)
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) 1222NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1238if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1241NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 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 (4)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 93if (retVal.ErrorCode == SecurityStatusPalErrorCode.OK || 94retVal.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 148if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";