52 references to SslStreamPal
System.Net.Security (52)
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(
1377
SslStreamPal
.QueryContextConnectionInfo(securityContext, ref connectionInfo);
1401
if (
SslStreamPal
.CanGenerateCustomAlertsForContext(securityContext) && !
SslStreamPal
.CertValidationInCallback && sender is SslStream sslStream)
1442
status =
SslStreamPal
.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage);
1472
status =
SslStreamPal
.ApplyShutdownToken(_securityContext!);
1688
return Done ? null :
SslStreamPal
.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83
token.Status =
SslStreamPal
.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (25)
713
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
751
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
849
return
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
1009
token =
SslStreamPal
.AcceptSecurityContext(
1021
token =
SslStreamPal
.InitializeSecurityContext(
1053
SecurityStatusPal selStatus =
SslStreamPal
.SelectApplicationProtocol(
1068
token =
SslStreamPal
.AcceptSecurityContext(
1078
token =
SslStreamPal
.InitializeSecurityContext(
1214
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1224
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
1301
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1359
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1380
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1485
ProtocolToken token =
SslStreamPal
.Renegotiate(
1574
SecurityStatusPal status =
SslStreamPal
.ApplyShutdownToken(_securityContext);
1577
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(status));
1589
token =
SslStreamPal
.AcceptSecurityContext(
1599
token =
SslStreamPal
.InitializeSecurityContext(
1805
token =
SslStreamPal
.AcceptSecurityContext(
1815
token =
SslStreamPal
.InitializeSecurityContext(
1835
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1836
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1969
SafeFreeCredentials? acquired =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
1993
token =
SslStreamPal
.AcceptSecurityContext(
2003
token =
SslStreamPal
.InitializeSecurityContext(