]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix allowing/showing unsupported ciphers and digests
authorArne Schwabe <arne@rfc2549.org>
Thu, 12 May 2022 12:14:28 +0000 (14:14 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 13 May 2022 07:06:57 +0000 (09:06 +0200)
commit3690939126cf84b166157bad96e724caea61346d
treed4d4896d7ff47762bf9048272c79dfc0d61d9256
parentc5d61b345e21860b2357206848535a8452754ad8
Fix allowing/showing unsupported ciphers and digests

This is a minimal version to hide the non-supported ciphers in these
show-cipher/show-digests listings. It also adds code to the kt_md_get/
kt_cipher_get functions to error out early instead of getting an ugly
backtrace with OpenSSL errors later when actually trying to use the
ciphers.

This allows make check to work again on with OpenSSL 3.0.

The changes are kept minimal to  avoid pulling in all the other refactoring
for OpenSSL 3.0.

This commit is partly cherry-picked from ab3f32b9.

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