Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AuthenticateAsClientAsync() [1/4]

Task System.Net.Security.SslStream.AuthenticateAsClientAsync ( SslClientAuthenticationOptions sslClientAuthenticationOptions,
CancellationToken cancellationToken = default(CancellationToken) )
inline

Definition at line 577 of file SslStream.cs.

578 {
579 if (sslClientAuthenticationOptions == null)
580 {
581 throw new ArgumentNullException("sslClientAuthenticationOptions");
582 }
583 SetAndVerifyValidationCallback(sslClientAuthenticationOptions.RemoteCertificateValidationCallback);
584 SetAndVerifySelectionCallback(sslClientAuthenticationOptions.LocalCertificateSelectionCallback);
586 return ProcessAuthenticationAsync(isAsync: true, isApm: false, cancellationToken);
587 }
void SetAndVerifySelectionCallback(LocalCertificateSelectionCallback callback)
Definition SslStream.cs:373
LocalCertSelectionCallback _certSelectionDelegate
Definition SslStream.cs:34
void ValidateCreateContext(SslClientAuthenticationOptions sslClientAuthenticationOptions, RemoteCertificateValidationCallback remoteCallback, LocalCertSelectionCallback localCallback)
Definition SslStream.cs:908
RemoteCertificateValidationCallback _userCertificateValidationCallback
Definition SslStream.cs:28
Task ProcessAuthenticationAsync(bool isAsync=false, bool isApm=false, CancellationToken cancellationToken=default(CancellationToken))
void SetAndVerifyValidationCallback(RemoteCertificateValidationCallback callback)
Definition SslStream.cs:361

References System.Net.Security.SslStream._certSelectionDelegate, System.Net.Security.SslStream._userCertificateValidationCallback, System.cancellationToken, System.Net.Security.SslClientAuthenticationOptions.LocalCertificateSelectionCallback, System.Net.Security.SslStream.ProcessAuthenticationAsync(), System.Net.Security.SslClientAuthenticationOptions.RemoteCertificateValidationCallback, System.Net.Security.SslStream.SetAndVerifySelectionCallback(), System.Net.Security.SslStream.SetAndVerifyValidationCallback(), and System.Net.Security.SslStream.ValidateCreateContext().