8 writes to Status
System.Net.Security (8)
System\Net\Security\SslStream.Protocol.cs (2)
856token.Status = SslStreamPal.SelectApplicationProtocol( 1013waitToken.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
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);
27 references to Status
System.Net.Security (27)
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); 326else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 368if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 371token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 377if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 387else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 701if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 722if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 725return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 748if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 754else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 760throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status));
System\Net\Security\SslStream.Protocol.cs (12)
795NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 854if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 862if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 884if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1025if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1027if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1482return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1490return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1498return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1506return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1563return Done ? null : SslStreamPal.GetException(Status);