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))
588
SslStreamPal
.StartMutualAuthAsAnonymous)
750
SafeFreeCredentials? cred =
SslStreamPal
.AcquireCredentialsHandle(sslAuthenticationOptions, newCredentialsRequested);
868
token =
SslStreamPal
.AcceptSecurityContext(
876
token.Status =
SslStreamPal
.SelectApplicationProtocol(
884
token =
SslStreamPal
.AcceptSecurityContext(
896
token =
SslStreamPal
.InitializeSecurityContext(
912
token =
SslStreamPal
.InitializeSecurityContext(
991
return
SslStreamPal
.Renegotiate(
1006
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1013
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1040
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1071
status =
SslStreamPal
.DecryptMessage(
1303
SslStreamPal
.QueryContextConnectionInfo(securityContext, ref connectionInfo);
1327
if (
SslStreamPal
.CanGenerateCustomAlertsForContext(securityContext) && !
SslStreamPal
.CertValidationInCallback && sender is SslStream sslStream)
1368
status =
SslStreamPal
.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage);
1398
status =
SslStreamPal
.ApplyShutdownToken(_securityContext!);
1614
return Done ? null :
SslStreamPal
.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83
token.Status =
SslStreamPal
.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (25)
679
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
717
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
815
return
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
975
token =
SslStreamPal
.AcceptSecurityContext(
987
token =
SslStreamPal
.InitializeSecurityContext(
1019
SecurityStatusPal selStatus =
SslStreamPal
.SelectApplicationProtocol(
1034
token =
SslStreamPal
.AcceptSecurityContext(
1044
token =
SslStreamPal
.InitializeSecurityContext(
1180
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1190
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
1267
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1325
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1346
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1428
ProtocolToken token =
SslStreamPal
.Renegotiate(
1485
SecurityStatusPal status =
SslStreamPal
.ApplyShutdownToken(_securityContext);
1488
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(status));
1500
token =
SslStreamPal
.AcceptSecurityContext(
1510
token =
SslStreamPal
.InitializeSecurityContext(
1716
token =
SslStreamPal
.AcceptSecurityContext(
1726
token =
SslStreamPal
.InitializeSecurityContext(
1746
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1747
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1836
SafeFreeCredentials? acquired =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
1860
token =
SslStreamPal
.AcceptSecurityContext(
1870
token =
SslStreamPal
.InitializeSecurityContext(