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

◆ ValidateCreateContext() [2/2]

void System.Net.Security.SslStream.ValidateCreateContext ( SslClientAuthenticationOptions sslClientAuthenticationOptions,
RemoteCertificateValidationCallback remoteCallback,
LocalCertSelectionCallback localCallback )
inlineprivate

Definition at line 908 of file SslStream.cs.

909 {
911 if (_context != null && _context.IsValidContext)
912 {
914 }
915 if (_context != null && IsServer)
916 {
918 }
919 if (sslClientAuthenticationOptions.TargetHost == null)
920 {
921 throw new ArgumentNullException("TargetHost");
922 }
923 _exception = null;
924 try
925 {
926 _sslAuthenticationOptions = new SslAuthenticationOptions(sslClientAuthenticationOptions, remoteCallback, localCallback);
927 _context = new SecureChannel(_sslAuthenticationOptions, this);
928 }
929 catch (Win32Exception innerException)
930 {
931 throw new AuthenticationException(System.SR.net_auth_SSPI, innerException);
932 }
933 }
ExceptionDispatchInfo _exception
Definition SslStream.cs:42
SslAuthenticationOptions _sslAuthenticationOptions
Definition SslStream.cs:62
static string net_auth_client_server
Definition SR.cs:70
static string net_auth_reauth
Definition SR.cs:66
static string net_auth_SSPI
Definition SR.cs:72
Definition SR.cs:7

References System.Net.Security.SslStream._context, System.Net.Security.SslStream._exception, System.Net.Security.SslStream._sslAuthenticationOptions, System.Net.Security.SslStream.IsServer, System.Net.Security.SecureChannel.IsValidContext, System.SR.net_auth_client_server, System.SR.net_auth_reauth, System.SR.net_auth_SSPI, System.Net.Security.SslClientAuthenticationOptions.TargetHost, and System.Net.Security.SslStream.ThrowIfExceptional().

Referenced by System.Net.Security.SslStream.AuthenticateAsClient(), System.Net.Security.SslStream.AuthenticateAsClientApm(), System.Net.Security.SslStream.AuthenticateAsClientAsync(), System.Net.Security.SslStream.AuthenticateAsServer(), System.Net.Security.SslStream.AuthenticateAsServerApm(), System.Net.Security.SslStream.AuthenticateAsServerAsync(), and System.Net.Security.SslStream.AuthenticateAsServerAsync().