52 references to SslStreamPal
System.Net.Security (52)
System\Net\Security\SslStream.IO.cs (6)
227
throw
SslStreamPal
.GetException(token.Status);
651
if (!
SslStreamPal
.CertValidationInCallback)
754
return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status))));
789
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
976
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1048
if (buffer.Length == 0 && !
SslStreamPal
.CanEncryptEmptyMessage)
System\Net\Security\SslStream.Protocol.cs (20)
107
result =
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
556
if (
SslStreamPal
.TryUpdateClintCertificate(_credentialsHandle, _securityContext, _sslAuthenticationOptions))
587
SslStreamPal
.StartMutualAuthAsAnonymous)
742
SafeFreeCredentials? cred =
SslStreamPal
.AcquireCredentialsHandle(sslAuthenticationOptions, newCredentialsRequested);
859
token =
SslStreamPal
.AcceptSecurityContext(
867
token.Status =
SslStreamPal
.SelectApplicationProtocol(
875
token =
SslStreamPal
.AcceptSecurityContext(
887
token =
SslStreamPal
.InitializeSecurityContext(
903
token =
SslStreamPal
.InitializeSecurityContext(
982
return
SslStreamPal
.Renegotiate(
997
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1004
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1031
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1062
status =
SslStreamPal
.DecryptMessage(
1294
SslStreamPal
.QueryContextConnectionInfo(securityContext, ref connectionInfo);
1318
if (
SslStreamPal
.CanGenerateCustomAlertsForContext(securityContext) && !
SslStreamPal
.CertValidationInCallback && sender is SslStream sslStream)
1359
status =
SslStreamPal
.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage);
1389
status =
SslStreamPal
.ApplyShutdownToken(_securityContext!);
1605
return Done ? null :
SslStreamPal
.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83
token.Status =
SslStreamPal
.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (25)
673
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
711
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
809
return
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
969
token =
SslStreamPal
.AcceptSecurityContext(
981
token =
SslStreamPal
.InitializeSecurityContext(
1013
SecurityStatusPal selStatus =
SslStreamPal
.SelectApplicationProtocol(
1028
token =
SslStreamPal
.AcceptSecurityContext(
1038
token =
SslStreamPal
.InitializeSecurityContext(
1174
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1184
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
1261
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1319
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1340
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1422
ProtocolToken token =
SslStreamPal
.Renegotiate(
1479
SecurityStatusPal status =
SslStreamPal
.ApplyShutdownToken(_securityContext);
1482
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(status));
1494
token =
SslStreamPal
.AcceptSecurityContext(
1504
token =
SslStreamPal
.InitializeSecurityContext(
1710
token =
SslStreamPal
.AcceptSecurityContext(
1720
token =
SslStreamPal
.InitializeSecurityContext(
1740
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1741
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1830
SafeFreeCredentials? acquired =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
1854
token =
SslStreamPal
.AcceptSecurityContext(
1864
token =
SslStreamPal
.InitializeSecurityContext(