52 references to SslStreamPal
System.Net.Security (52)
System\Net\Security\SslStream.IO.cs (6)
230throw SslStreamPal.GetException(token.Status); 671if (!SslStreamPal.CertValidationInCallback) 774return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 809throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 996throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1068if (buffer.Length == 0 && !SslStreamPal.CanEncryptEmptyMessage)
System\Net\Security\SslStream.Protocol.cs (20)
110result = SslStreamPal.QueryContextChannelBinding(_securityContext, kind); 565if (SslStreamPal.TryUpdateClintCertificate(_credentialsHandle, _securityContext, _sslAuthenticationOptions)) 598SslStreamPal.StartMutualAuthAsAnonymous) 763SafeFreeCredentials? cred = SslStreamPal.AcquireCredentialsHandle(sslAuthenticationOptions, newCredentialsRequested); 877token = SslStreamPal.AcceptSecurityContext( 885token.Status = SslStreamPal.SelectApplicationProtocol( 893token = SslStreamPal.AcceptSecurityContext( 905token = SslStreamPal.InitializeSecurityContext( 921token = SslStreamPal.InitializeSecurityContext( 1001return SslStreamPal.Renegotiate( 1016SslStreamPal.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes); 1023SslStreamPal.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo); 1050ProtocolToken token = SslStreamPal.EncryptMessage( 1081status = SslStreamPal.DecryptMessage( 1377SslStreamPal.QueryContextConnectionInfo(securityContext, ref connectionInfo); 1401if (SslStreamPal.CanGenerateCustomAlertsForContext(securityContext) && !SslStreamPal.CertValidationInCallback && sender is SslStream sslStream) 1442status = SslStreamPal.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage); 1472status = SslStreamPal.ApplyShutdownToken(_securityContext!); 1688return Done ? null : SslStreamPal.GetException(Status);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
83token.Status = SslStreamPal.SelectApplicationProtocol(
System\Net\Security\TlsSession.cs (25)
713_sessionCredentialsHandle = SslStreamPal.AcquireCredentialsHandle(_options, false); 751_sessionCredentialsHandle = SslStreamPal.AcquireCredentialsHandle(_options, false); 849return SslStreamPal.QueryContextChannelBinding(_securityContext, kind); 1009token = SslStreamPal.AcceptSecurityContext( 1021token = SslStreamPal.InitializeSecurityContext( 1053SecurityStatusPal selStatus = SslStreamPal.SelectApplicationProtocol( 1068token = SslStreamPal.AcceptSecurityContext( 1078token = SslStreamPal.InitializeSecurityContext( 1214ProtocolToken token = SslStreamPal.EncryptMessage( 1224throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1301SecurityStatusPal status = SslStreamPal.DecryptMessage( 1359throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1380SecurityStatusPal status = SslStreamPal.DecryptMessage( 1485ProtocolToken token = SslStreamPal.Renegotiate( 1574SecurityStatusPal status = SslStreamPal.ApplyShutdownToken(_securityContext); 1577throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(status)); 1589token = SslStreamPal.AcceptSecurityContext( 1599token = SslStreamPal.InitializeSecurityContext( 1805token = SslStreamPal.AcceptSecurityContext( 1815token = SslStreamPal.InitializeSecurityContext( 1835SslStreamPal.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo); 1836SslStreamPal.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes); 1969SafeFreeCredentials? acquired = SslStreamPal.AcquireCredentialsHandle(_options, false); 1993token = SslStreamPal.AcceptSecurityContext( 2003token = SslStreamPal.InitializeSecurityContext(