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

◆ ValidateCreateContext() [1/2]

void System.Net.Security.SslStream.ValidateCreateContext ( SslAuthenticationOptions sslAuthenticationOptions)
inlineprivate

Definition at line 935 of file SslStream.cs.

936 {
938 if (_context != null && _context.IsValidContext)
939 {
941 }
942 if (_context != null && !IsServer)
943 {
945 }
946 _exception = null;
947 _sslAuthenticationOptions = sslAuthenticationOptions;
948 try
949 {
950 _context = new SecureChannel(_sslAuthenticationOptions, this);
951 }
952 catch (Win32Exception innerException)
953 {
954 throw new AuthenticationException(System.SR.net_auth_SSPI, innerException);
955 }
956 }
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, and System.Net.Security.SslStream.ThrowIfExceptional().