]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Create HASSL_DH wrapper structure
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 11 Feb 2022 11:04:47 +0000 (12:04 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 14 Feb 2022 09:07:14 +0000 (10:07 +0100)
commit956f3aea0387ebc2d7281ed792d44150897c348f
treedb34e74686035d20ae232862980815b6f96d890a
parent17b7384f8207dc54f44bd12e77c60ffad1a72155
MINOR: ssl: Create HASSL_DH wrapper structure

The DH mechanism relies on DH objects that are low-level structures that
should not be used anymore starting from OpenSSLv3. With the newer
OpenSSL version, we should only use higher level EVP_PKEY objects.
Since enforcing this new logic to older versions of OpenSSL could be
dangerous (or plain impossible), we will keeptwo versions of the code
when required.
The HASSL_DH define will allow to unify some of the functions that were
created for DH use without having to add too many duplicated blocks of
code depending on the OpenSSL version.
include/haproxy/openssl-compat.h