]> git.ipfire.org Git - thirdparty/curl.git/commit
wolfssl: Support wolfSSL builds missing TLS 1.1
authorJay Satiro <raysatiro@yahoo.com>
Tue, 29 Dec 2020 20:46:42 +0000 (15:46 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 4 Jan 2021 23:00:37 +0000 (18:00 -0500)
commit7de2e96535e97f2446fea077402caab2ee291425
treebdcc08a766e6e03e35a56e6d3410cb6cca8c8331
parent82e6d34803dbe302f537d9cd9873d2717df02b46
wolfssl: Support wolfSSL builds missing TLS 1.1

The wolfSSL TLS library defines NO_OLD_TLS in some of their build
configurations and that causes the library to be built without TLS 1.1.
For example if MD5 is explicitly disabled when building wolfSSL then
that defines NO_OLD_TLS and the library is built without TLS 1.1 [1].

Prior to this change attempting to build curl with a wolfSSL that was
built with NO_OLD_TLS would cause a build link error undefined reference
to wolfTLSv1_client_method.

[1]: https://github.com/wolfSSL/wolfssl/blob/v4.5.0-stable/configure.ac#L2366

Bug: https://curl.se/mail/lib-2020-12/0121.html
Reported-by: Julian Montes
Closes https://github.com/curl/curl/pull/6388
lib/vtls/wolfssl.c