OSDN Git Service

SecurityProtocolTypeの明示的な指定を削除
authorKimura Youichi <kim.upsilon@bucyou.net>
Tue, 1 May 2018 22:23:52 +0000 (07:23 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 9 Jun 2018 01:42:10 +0000 (10:42 +0900)
ServicePointManager.SecurityProtocol の値は SecurityProtocolType.SystemDefault がデフォルトになったため、明示的に指定する必要は無くなった

OpenTween/Connection/Networking.cs

index c7d0030..b0699a6 100644 (file)
@@ -95,10 +95,6 @@ namespace OpenTween.Connection
             Networking.initialized = true;
 
             ServicePointManager.Expect100Continue = false;
-
-            // 明示的に指定しないと、デフォルトでは SSL3.0, TLS1.0 のみ有効となる (.NET Framework 4.5.1)
-            // https://blogs.technet.microsoft.com/jpieblog/2015/04/07/net-framework-tls1-1-1-2/
-            ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
         }
 
         public static void SetWebProxy(ProxyType proxyType, string proxyAddress, int proxyPort,