]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl: set FLAG_TRUSTED_FIRST unconditionally
authorFrançois Rigault <rigault.francois@gmail.com>
Fri, 5 Jun 2020 20:00:58 +0000 (22:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 6 Jun 2020 16:01:24 +0000 (18:01 +0200)
commite2de2d53979ac6d93303562f5531f75944e70b8b
tree957013e2326285613eb69088e92c31c01d3eea00
parent2705830f2fa0f7831e45fd4550dbe645136ab41c
openssl: set FLAG_TRUSTED_FIRST unconditionally

On some systems, openssl 1.0.x is still the default, but it has been
patched to contain all the recent security fixes. As a result of this
patching, it is possible for macro X509_V_FLAG_NO_ALT_CHAINS to be
defined, while the previous behavior of openssl to not look at trusted
chains first, remains.

Fix it: ensure X509_V_FLAG_TRUSTED_FIRST is always set, do not try to
probe for the behavior of openssl based on the existence ofmacros.

Closes #5530
lib/vtls/openssl.c