55 references to SslStreamPal
System.Net.Security (55)
System\Net\Security\SslStream.IO.cs (6)
230
throw
SslStreamPal
.GetException(token.Status);
671
if (!
SslStreamPal
.CertValidationInCallback)
774
return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status))));
809
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
996
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1068
if (buffer.Length == 0 && !
SslStreamPal
.CanEncryptEmptyMessage)
System\Net\Security\SslStream.Protocol.cs (20)
110
result =
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
565
if (
SslStreamPal
.TryUpdateClintCertificate(_credentialsHandle, _securityContext, _sslAuthenticationOptions))
598
SslStreamPal
.StartMutualAuthAsAnonymous)
763
SafeFreeCredentials? cred =
SslStreamPal
.AcquireCredentialsHandle(sslAuthenticationOptions, newCredentialsRequested);
877
token =
SslStreamPal
.AcceptSecurityContext(
885
token.Status =
SslStreamPal
.SelectApplicationProtocol(
893
token =
SslStreamPal
.AcceptSecurityContext(
905
token =
SslStreamPal
.InitializeSecurityContext(
921
token =
SslStreamPal
.InitializeSecurityContext(
1001
return
SslStreamPal
.Renegotiate(
1016
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1023
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1050
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1081
status =
SslStreamPal
.DecryptMessage(
1381
SslStreamPal
.QueryContextConnectionInfo(securityContext, ref connectionInfo);
1405
if (
SslStreamPal
.CanGenerateCustomAlertsForContext(securityContext) && !
SslStreamPal
.CertValidationInCallback && sender is SslStream sslStream)
1446
status =
SslStreamPal
.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage);
1476
status =
SslStreamPal
.ApplyShutdownToken(_securityContext!);
1692
return Done ? null :
SslStreamPal
.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83
token.Status =
SslStreamPal
.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (28)
713
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
751
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
849
return
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
1009
token =
SslStreamPal
.AcceptSecurityContext(
1024
SslStreamPal
.TryUpdateClintCertificate(ActiveCredentialsRef(), _securityContext, _options);
1028
token =
SslStreamPal
.InitializeSecurityContext(
1040
SslStreamPal
.TryUpdateClintCertificate(ActiveCredentialsRef(), _securityContext, _options))
1048
token =
SslStreamPal
.InitializeSecurityContext(
1081
SecurityStatusPal selStatus =
SslStreamPal
.SelectApplicationProtocol(
1096
token =
SslStreamPal
.AcceptSecurityContext(
1106
token =
SslStreamPal
.InitializeSecurityContext(
1242
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1252
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
1329
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1387
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1408
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1513
ProtocolToken token =
SslStreamPal
.Renegotiate(
1602
SecurityStatusPal status =
SslStreamPal
.ApplyShutdownToken(_securityContext);
1605
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(status));
1617
token =
SslStreamPal
.AcceptSecurityContext(
1627
token =
SslStreamPal
.InitializeSecurityContext(
1833
token =
SslStreamPal
.AcceptSecurityContext(
1843
token =
SslStreamPal
.InitializeSecurityContext(
1863
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1864
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1997
SafeFreeCredentials? acquired =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
2021
token =
SslStreamPal
.AcceptSecurityContext(
2031
token =
SslStreamPal
.InitializeSecurityContext(