]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Add ssl_sock_set_tmp_dh_from_pkey helper function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 11 Feb 2022 11:04:51 +0000 (12:04 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 14 Feb 2022 09:07:14 +0000 (10:07 +0100)
commit5f17930572c30fb21197b7feeb529a2c114af840
treee6f6444d64b73fa443b505c5f993d27045e79683
parent846eda91bab19c63bbdcac8d46ae20f47c1edb9d
MINOR: ssl: Add ssl_sock_set_tmp_dh_from_pkey helper function

This helper function will only be used with OpenSSLv3. It simply sets in
an SSL_CTX a set of DH parameters of the same size as a certificate's
private key. This logic is the same as the one used with older versions,
it simply relies on new APIs.
If no pkey can be found the SSL_CTX_set_dh_auto function wll be called,
making the SSL_CTX rely on DH parameters provided by OpenSSL in case of
DHE negotiation.
src/ssl_sock.c