9 writes to Status
System.Net.Security (9)
System\Net\Security\SslStream.Protocol.cs (2)
867token.Status = SslStreamPal.SelectApplicationProtocol( 1025waitToken.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)
794NetEventSource.Error(this, $"Authentication failed. Status: {wedged.Status}, Exception message: {wedged.GetException()!.Message}"); 804NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 865if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 873if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK) 895if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded) 1037if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1039if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1524return ((Status.ErrorCode != SecurityStatusPalErrorCode.OK) && (Status.ErrorCode != SecurityStatusPalErrorCode.ContinueNeeded)); 1532return (Status.ErrorCode == SecurityStatusPalErrorCode.OK); 1540return (Status.ErrorCode == SecurityStatusPalErrorCode.Renegotiate); 1548return (Status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired); 1605return 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)
1002if (token.Status.ErrorCode == SecurityStatusPalErrorCode.HandshakeStarted) 1055token.Status.ErrorCode != SecurityStatusPalErrorCode.CredentialsNeeded && 1056token.Status.ErrorCode != SecurityStatusPalErrorCode.CertValidationNeeded) 1078bool done = token.Status.ErrorCode == SecurityStatusPalErrorCode.OK; 1079bool needsCredentials = token.Status.ErrorCode == SecurityStatusPalErrorCode.CredentialsNeeded; 1080bool needsCertValidation = token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationNeeded; 1182if (token.Status.ErrorCode != SecurityStatusPalErrorCode.OK) 1184throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1729if (token.Status.ErrorCode == SecurityStatusPalErrorCode.OK)