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