1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
50 references to ErrorCode
System.Net.Security (50)
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); 349else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 394token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 400if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 410else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 730if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 751if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 777if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 783else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 946if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 960if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 969else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
System\Net\Security\SslStream.Protocol.cs (15)
874if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 882if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 904if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1046if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1081if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1094if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1370if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1373NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1400if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1403NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1533return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1541return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1549return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1557return (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 (12)
1008if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1025if (selStatus.ErrorCode != SecurityStatusPalErrorCode.OK) 1061token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1062token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1084bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1085bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1086bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1188if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1275switch (status.ErrorCode) 1354if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1486if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1735if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";