]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove cipher_ctx_get_cipher_kt and replace with direct context calls
authorArne Schwabe <arne@rfc2549.org>
Wed, 1 Dec 2021 18:07:21 +0000 (19:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 6 Dec 2021 08:25:11 +0000 (09:25 +0100)
commit0b1c721e4f19c84ea35a2e266c3913eb893355ec
tree043f4b2a67674aff4c25eb53db2b20f238ab6ed8
parente832658a6d7a78c97fc53a78faeda31419583529
Remove cipher_ctx_get_cipher_kt and replace with direct context calls

We currently have a number of calls that fetch the cipher_kt from a
cipher_ctx to then do a query on the cipher_kt. Directly fetching the
desired property from the context is cleaner and helps for using the
proper APIs with OpenSSL 3.0 and mbed TLS 3.0

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211201180727.2496903-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23278.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c
src/openvpn/crypto_backend.h
src/openvpn/crypto_mbedtls.c
src/openvpn/crypto_openssl.c
src/openvpn/openssl_compat.h
src/openvpn/ssl.c
src/openvpn/ssl_ncp.c