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)
222if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 224if (token.Status.ErrorCode == SecurityStatusPalErrorCode.NoRenegotiation) 230throw SslStreamPal.GetException(token.Status); 245while (token.Status.ErrorCode == SecurityStatusPalErrorCode.ContinueNeeded); 352else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 394if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 397token.Status.ErrorCode == SecurityStatusPalErrorCode.IllegalMessage) 403if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 413else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 733if (token.Status.ErrorCode != SecurityStatusPalErrorCode.TryAgain) 754if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 757return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 780if (token.Status.ErrorCode == SecurityStatusPalErrorCode.TryAgain) 786else if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 792throw 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}"); 1597return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1605return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1613return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1621return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1678return 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)
1034if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1087token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1088token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1110bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1111bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1112bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1214if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1216throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1812if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)