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)
865if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 873if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 895if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1037if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1072if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1085if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 1361if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1364NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1391if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1394NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1524return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1532return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1540return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1548return (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)
1002if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1019if (selStatus.ErrorCode != SecurityStatusPalErrorCode.OK) 1055token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1056token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1078bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1079bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1080bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1182if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1269switch (status.ErrorCode) 1348if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1480if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1729if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";