52 references to SslStreamPal
System.Net.Security (52)
System\Net\Security\SslStream.IO.cs (6)
230
throw
SslStreamPal
.GetException(token.Status);
654
if (!
SslStreamPal
.CertValidationInCallback)
757
return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status))));
792
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
979
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1051
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(
1367
SslStreamPal
.QueryContextConnectionInfo(securityContext, ref connectionInfo);
1391
if (
SslStreamPal
.CanGenerateCustomAlertsForContext(securityContext) && !
SslStreamPal
.CertValidationInCallback && sender is SslStream sslStream)
1432
status =
SslStreamPal
.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage);
1462
status =
SslStreamPal
.ApplyShutdownToken(_securityContext!);
1678
return Done ? null :
SslStreamPal
.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83
token.Status =
SslStreamPal
.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (25)
705
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
743
_sessionCredentialsHandle =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
841
return
SslStreamPal
.QueryContextChannelBinding(_securityContext, kind);
1001
token =
SslStreamPal
.AcceptSecurityContext(
1013
token =
SslStreamPal
.InitializeSecurityContext(
1045
SecurityStatusPal selStatus =
SslStreamPal
.SelectApplicationProtocol(
1060
token =
SslStreamPal
.AcceptSecurityContext(
1070
token =
SslStreamPal
.InitializeSecurityContext(
1206
ProtocolToken token =
SslStreamPal
.EncryptMessage(
1216
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(token.Status));
1293
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1351
throw new IOException(SR.net_io_decrypt,
SslStreamPal
.GetException(status));
1372
SecurityStatusPal status =
SslStreamPal
.DecryptMessage(
1477
ProtocolToken token =
SslStreamPal
.Renegotiate(
1562
SecurityStatusPal status =
SslStreamPal
.ApplyShutdownToken(_securityContext);
1565
throw new IOException(SR.net_io_encrypt,
SslStreamPal
.GetException(status));
1577
token =
SslStreamPal
.AcceptSecurityContext(
1587
token =
SslStreamPal
.InitializeSecurityContext(
1793
token =
SslStreamPal
.AcceptSecurityContext(
1803
token =
SslStreamPal
.InitializeSecurityContext(
1823
SslStreamPal
.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo);
1824
SslStreamPal
.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes);
1957
SafeFreeCredentials? acquired =
SslStreamPal
.AcquireCredentialsHandle(_options, false);
1981
token =
SslStreamPal
.AcceptSecurityContext(
1991
token =
SslStreamPal
.InitializeSecurityContext(