9 writes to Status
System.Net.Security (9)
System\Net\Security\SslStream.Protocol.cs (2)
885token.Status = SslStreamPal.SelectApplicationProtocol( 1044waitToken.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83token.Status = SslStreamPal.SelectApplicationProtocol(
System\Net\Security\SslStreamPal.Unix.cs (6)
77token.Status = MapNativeErrorCode(errorCode); 81token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 162return new ProtocolToken { Status = status }; 218token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 236token.Status = new SecurityStatusPal(errorCode); 240token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc);
42 references to Status
System.Net.Security (42)
System\Net\Security\SslStream.IO.cs (15)
222if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 224if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 230throw SslStreamPal.GetException(token.Status); 245while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 364else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 406if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 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) 774return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 797if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 803else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 809throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status));
System\Net\Security\SslStream.Protocol.cs (13)
816NetEventSource.Error(this, $"Authentication failed. Status: {wedged.Status}, Exception message: {wedged.GetException()!.Message}"); 826NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 883if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 891if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 913if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1056if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1058if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1611return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1619return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1627return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1635return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1692return Done ? null : SslStreamPal.GetException(Status);
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\TlsSession.cs (11)
1038if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded && 1070if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 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) 1252throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1523bool noRenegotiation = token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation; 1852if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)