From d292a219c4d8f11f11fe248a13fb6653a98ad9a2 Mon Sep 17 00:00:00 2001 From: Tomas Weinfurt Date: Mon, 5 Oct 2020 13:36:20 -0700 Subject: [PATCH] improve detection of TLS13 on Windows (#42937) --- .../Common/tests/TestUtilities/System/PlatformDetection.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs index 4aec516..313e619 100644 --- a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs @@ -332,8 +332,10 @@ namespace System } } catch { }; - // assume no if key is missing or on error. - return false; + // assume no if positive entry is missing on older Windows + // Latest insider builds have TLS 1.3 enabled by default. + // The build number is approximation. + return IsWindows10Version2004Build19573OrGreater; } else if (IsOSX || IsiOS || IstvOS) { -- 2.7.4