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

This new function makes use of the new OpenSSLv3 APIs that should be
used to load DH parameters from a file (or a BIO in this case) and that
should replace the deprecated PEM_read_bio_DHparams function.
Note that this function returns an EVP_PKEY when using OpenSSLv3 since
they now advise against using low level structures such as DH ones.
This helper function is not used yet so this commit should be stricly
iso-functional, regardless of the OpenSSL version.
include/haproxy/ssl_sock.h
src/ssl_sock.c