1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
35 references to ErrorCode
System.Net.Security (35)
System\Net\Security\SslStream.IO.cs (14)
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) 377if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 387else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 701if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 722if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 748if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 754else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 917if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 931if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 940else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (15)
854if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 862if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 884if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1025if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1060if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1073if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1319if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1322NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1349if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1352NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1482return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1490return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1498return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1506return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (2)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 160if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";