diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-12-16 10:06:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-12-16 10:06:09 +0100 |
commit | 1ff3a07be9b875155b0076a91a0b8f5c5fd22067 (patch) | |
tree | 2f0b2a7571cecb8ab90a0f79a65a68e611903dba /lib | |
parent | 15cb03ad846a10c4aa4889d46804389ad11cdc1d (diff) |
wolfssl: handle builds without SSLv3 support
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/cyassl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c index f51b04192..20629f45d 100644 --- a/lib/vtls/cyassl.c +++ b/lib/vtls/cyassl.c @@ -143,8 +143,15 @@ cyassl_connect_step1(struct connectdata *conn, use_sni(TRUE); break; case CURL_SSLVERSION_SSLv3: + /* before WolfSSL SSLv3 was enabled by default, and starting in WolfSSL + we check for its presence since it is built without it by default */ +#if !defined(WOLFSSL_VERSION) || defined(HAVE_WOLFSSLV3_CLIENT_METHOD) req_method = SSLv3_client_method(); use_sni(FALSE); +#else + failf(data, "No support for SSLv3"); + return CURLE_NOT_BUILT_IN; +#endif break; case CURL_SSLVERSION_SSLv2: failf(data, "CyaSSL does not support SSLv2"); |