1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-07-30 19:03:17 +03:00

CONC-778: TLSv1.3 support for Windows Server 2022

Windows Server 2022 uses version number 10.0.20348, which is less than 10.0.22000.
Therefore, instead of checking for build numbers >= 22000 (which would exclude Server 2022),
we must check for build numbers >= 20348 to correctly include both Windows Server 2022
and Windows 11.

This is safe because TLSv1.3 was first supported in:
- Windows 11 (starting with build 22000)
- Windows Server 2022 (starting with build 20348)

Earlier versions did not support TLSv1.3:
- Windows 10 (up to build 19044)
- Windows Server 2019 (latest build 17763)
This commit is contained in:
Georg Richter
2025-06-07 15:32:44 +02:00
parent 163fc458a2
commit aebe28b8eb

View File

@ -458,7 +458,8 @@ static SECURITY_STATUS init_auth_data(MA_SCHANNEL_CREDENTIALS *ma_cred,
ma_cred->use_old_cred_structure= TRUE;
}
if (!os_version_greater_equal(10, 0, 22000))
/* CONC-778: Windows 11 starts with build 22000, Windows Server 2022 with 20348 */
if (!os_version_greater_equal(10, 0, 20348))
{
ma_cred->use_old_cred_structure= TRUE;
}