1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
52 references to ErrorCode
System.Net.Security (52)
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); 352else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 397token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 403if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 413else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 733if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 754if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 780if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 786else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 949if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 963if (status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate) 972else 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) 1434if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1437NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1464if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1467NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1597return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1605return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1613return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1621return (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)
1034if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1051if (selStatus.ErrorCode != SecurityStatusPalErrorCode.OK) 1087token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1088token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1110bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1111bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1112bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1214if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1301switch (status.ErrorCode) 1380if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1563if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1812if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)
System\Net\Security\TlsSession.OpenSsl.cs (2)
364if (status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 372if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";