Skip to content

Commit

Permalink
wolfssl: detect when TLS 1.2 support is not built into wolfssl
Browse files Browse the repository at this point in the history
Closes curl#11444
  • Loading branch information
darktohka authored and ptitSeb committed Sep 25, 2023
1 parent b08c09f commit 8f701a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/vtls/wolfssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f701a5

Please sign in to comment.