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

◆ ConstructSslOptions()

static SslClientAuthenticationOptions System.Net.Http.HttpConnectionPool.ConstructSslOptions ( HttpConnectionPoolManager poolManager,
string sslHostName )
inlinestaticprivate

Definition at line 336 of file HttpConnectionPool.cs.

337 {
339 sslClientAuthenticationOptions.TargetHost = sslHostName;
340 if (s_isWindows7Or2008R2 && sslClientAuthenticationOptions.EnabledSslProtocols == SslProtocols.None)
341 {
342 if (System.Net.NetEventSource.Log.IsEnabled())
343 {
344 System.Net.NetEventSource.Info(poolManager, $"Win7OrWin2K8R2 platform, Changing default TLS protocols to {SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12 | SslProtocols.Tls13}", "ConstructSslOptions");
345 }
346 sslClientAuthenticationOptions.EnabledSslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12 | SslProtocols.Tls13;
347 }
349 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Net.Http.HttpConnectionPool.s_isWindows7Or2008R2.

Referenced by System.Net.Http.HttpConnectionPool.HttpConnectionPool().