1 write to ErrorCode
System.Net.Security (1)
System\Net\SecurityStatusPal.cs (1)
13ErrorCode = errorCode;
54 references to ErrorCode
System.Net.Security (54)
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) 1448if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1451NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1478if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1481NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1611return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1619return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1627return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1635return (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 (14)
1038if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded && 1070if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1087if (selStatus.ErrorCode != SecurityStatusPalErrorCode.OK) 1123token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1124token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1146bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1147bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1148bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1250if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1337switch (status.ErrorCode) 1416if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1523bool noRenegotiation = token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation; 1603if (status.ErrorCode != SecurityStatusPalErrorCode.OK) 1852if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)
System\Net\Security\TlsSession.OpenSsl.cs (2)
369if (status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 377if (status.ErrorCode != SecurityStatusPalErrorCode.OK)
System\Net\SecurityStatusPal.cs (4)
20$"{nameof(ErrorCode)}={ErrorCode}" : 21$"{nameof(ErrorCode)}={ErrorCode}, {nameof(Exception)}={Exception}";