mbedtls: support TLS 1.3

Closes #13539
This commit is contained in:
MAntoniak 2024-02-08 21:12:49 +01:00 committed by Daniel Stenberg
parent 7c8970e95f
commit 1ea7dce08d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 45 additions and 5 deletions

View file

@ -77,7 +77,8 @@ class TestSSLUse:
exp_resumed = 'Initial' # rustls does not support sessions, TODO
if env.curl_uses_lib('bearssl') and tls_max == '1.3':
pytest.skip('BearSSL does not support TLSv1.3')
if env.curl_uses_lib('mbedtls') and tls_max == '1.3':
if env.curl_uses_lib('mbedtls') and tls_max == '1.3' and \
not env.curl_lib_version_at_least('mbedtls', '3.6.0'):
pytest.skip('mbedtls does not support TLSv1.3')
curl = CurlClient(env=env)