1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
34 references to ErrorCode
System.Net.Security (34)
System\Net\Security\SslStream.IO.cs (13)
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) 379else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 693if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 714if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 740if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 746else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 907if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 921if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 930else 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) 996if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1031if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1044if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1290if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1293NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1309if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1312NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1442return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1450return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1458return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1466return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStreamPal.Unix.cs (2)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 155if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";