1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
53 references to ErrorCode
System.Net.Security (53)
System\Net\Security\SslStream.IO.cs (14)
222if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 224if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 245while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 364else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 409token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 415if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 425else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 750if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 771if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 797if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 803else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 966if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 980if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 989else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (15)
883if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 891if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 913if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1056if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1091if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1104if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1444if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1447NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1474if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1477NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1607return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1615return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1623return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1631return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired);
System\Net\Security\SslStream.TlsSessionWedge.cs (3)
81if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 89if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 101if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded)
System\Net\Security\SslStreamPal.Unix.cs (2)
17return status.Exception ?? new Interop.OpenSsl.SslException((int)status.ErrorCode); 160if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\Security\TlsSession.cs (13)
1042if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1059if (selStatus.ErrorCode != SecurityStatusPalErrorCode.OK) 1095token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1096token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1118bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1119bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1120bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1222if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1309switch (status.ErrorCode) 1388if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1495bool noRenegotiation = token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation; 1575if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1824if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)
System\Net\Security\TlsSession.OpenSsl.cs (2)
366if (status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 374if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";