]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sample/ssl: Fix digest converter for openssl < 1.1.0
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 May 2020 14:19:03 +0000 (16:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 May 2020 14:30:41 +0000 (16:30 +0200)
commit325504cf89b236cb49a4deec0d147596a65537d6
tree5923e71c746badf0a66fc55200af9e6eb0219a4b
parent4b3a2dfed5f88bf832c9b0e536c6a483fdb2f180
BUG/MINOR: sample/ssl: Fix digest converter for openssl < 1.1.0

The EVP_MD_CTX_create() and EVP_MD_CTX_destroy() functions were renamed to
EVP_MD_CTX_new() and EVP_MD_CTX_free() in OpenSSL 1.1.0, respectively. These
functions are used by the digest converter, introduced by the commit 8e36651ed
("MINOR: sample: Add digest and hmac converters"). So for prior versions of
openssl, macros are used to fallback on old functions.

This patch must only be backported if the commit 8e36651ed is backported too.
include/common/openssl-compat.h