]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix EVP_PKEY_CTX_... compilation with LibreSSL
authorGert Doering <gert@greenie.muc.de>
Mon, 8 Mar 2021 11:44:05 +0000 (12:44 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 8 Mar 2021 11:51:09 +0000 (12:51 +0100)
commit4cf01c8e4381403998341aa32f79f4bf24c7ccb1
tree290a75779aa4c3321d5e8db02efa17ab11d17696
parent06f6cf3ff850f2930bf4a864ae9898407e94ffb9
Fix EVP_PKEY_CTX_... compilation with LibreSSL

Commit 06f6cf3ff850f29 introduced use of newer OpenSSL functions
for the TLS 1.0-1.1 PRF, to make OpenVPN work with FIPS-enabled OpenSSL.

LibreSSL masquerades as "very new OpenSSL" but does not have these
functions (or at least not on the OpenBSD system tested), so compilationg
breaks.

Add a "but not if LibreSSL" check to the OpenSSL version check, as we
do in other places.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20210308114405.19066-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21628.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c