8 writes to Status
System.Net.Security (8)
System\Net\Security\SslStream.IO.cs (1)
97token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
System\Net\Security\SslStream.Protocol.cs (1)
885token.Status = SslStreamPal.SelectApplicationProtocol(
System\Net\Security\SslStreamPal.Unix.cs (6)
70token.Status = MapNativeErrorCode(errorCode); 74token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, ex); 201token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.CredentialsNeeded); 226token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, Interop.OpenSsl.CreateSslException(SR.net_alpn_failed)); 230token.Status = new SecurityStatusPal(errorCode); 234token.Status = new SecurityStatusPal(SecurityStatusPalErrorCode.InternalError, exc);
26 references to Status
System.Net.Security (26)
System\Net\Security\SslStream.IO.cs (14)
236if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 238if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 244throw SslStreamPal.GetException(token.Status); 259while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 319else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 361if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 364token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 372else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 631if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 652if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 655return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 678if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 684else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 690throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status));
System\Net\Security\SslStream.Protocol.cs (12)
824NetEventSource.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) 1011if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1013if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1336return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1344return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1352return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1360return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1417return Done ? null : SslStreamPal.GetException(Status);