From e48c1c04e6e9b772dd8288b708a1b100ca85abf5 Mon Sep 17 00:00:00 2001 From: wfurt Date: Fri, 15 Apr 2022 17:35:34 +0000 Subject: [PATCH] disable Tls 1.0 and 1.1 tests on new Windows --- .../Common/tests/TestUtilities/System/PlatformDetection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs index 799a400f5fbfa..7732493fcb7db 100644 --- a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs @@ -450,7 +450,7 @@ private static bool GetTls10Support() // Windows depend on registry, enabled by default on all supported versions. if (IsWindows) { - return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls, defaultProtocolSupport: true); + return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls, defaultProtocolSupport: true) && !IsWindows10Version20348OrGreater; } return OpenSslGetTlsSupport(SslProtocols.Tls); @@ -467,7 +467,7 @@ private static bool GetTls11Support() } // It is enabled on other versions unless explicitly disabled. - return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls11, defaultProtocolSupport: true); + return GetProtocolSupportFromWindowsRegistry(SslProtocols.Tls11, defaultProtocolSupport: true) && !IsWindows10Version20348OrGreater; } // on macOS and Android TLS 1.1 is supported. else if (IsOSXLike || IsAndroid)