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);
41 references to Status
System.Net.Security (41)
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}"); 1607return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1615return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1623return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1631return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1688return 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 (10)
1042if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1095token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1096token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1118bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1119bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1120bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1222if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1224throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1495bool noRenegotiation = token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation; 1824if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)