From 8f701a523d150390537c4ec1654f2d6dc82694ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Derzsi=20D=C3=A1niel?= Date: Sun, 16 Jul 2023 10:20:23 +0000 Subject: [PATCH] wolfssl: detect when TLS 1.2 support is not built into wolfssl Closes #11444 --- lib/vtls/wolfssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index 1fe173b0ec759e..d66a270c040d92 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -415,8 +415,13 @@ wolfssl_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) #endif break; case CURL_SSLVERSION_TLSv1_2: +#ifndef WOLFSSL_NO_TLS12 req_method = TLSv1_2_client_method(); use_sni(TRUE); +#else + failf(data, "wolfSSL does not support TLS 1.2"); + return CURLE_NOT_BUILT_IN; +#endif break; case CURL_SSLVERSION_TLSv1_3: #ifdef WOLFSSL_TLS13