9 writes to Status
System.Net.Security (9)
System\Net\Security\SslStream.Protocol.cs (2)
876token.Status = SslStreamPal.SelectApplicationProtocol( 1034waitToken.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 }; 214token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 232token.Status = new SecurityStatusPal(errorCode); 236token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc);
40 references to Status
System.Net.Security (40)
System\Net\Security\SslStream.IO.cs (15)
219if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 221if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 227throw SslStreamPal.GetException(token.Status); 242while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 349else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 391if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 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) 754return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 777if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 783else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 789throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status));
System\Net\Security\SslStream.Protocol.cs (13)
803NetEventSource.Error(this, $"Authentication failed. Status: {wedged.Status}, Exception message: {wedged.GetException()!.Message}"); 813NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 874if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 882if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 904if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1046if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1048if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1533return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1541return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1549return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1557return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1614return 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 (9)
1008if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1061token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1062token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1084bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1085bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1086bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1188if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1190throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1735if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)