mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 05:36:56 +00:00
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 commit8e36651ed
("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 commit8e36651ed
is backported too.
This commit is contained in:
parent
4b3a2dfed5
commit
325504cf89
@ -370,5 +370,13 @@ static inline void SSL_CTX_up_ref(SSL_CTX *ctx)
|
||||
#define SSL_CTX_set_ecdh_auto(dummy, onoff) ((onoff) != 0)
|
||||
#endif
|
||||
|
||||
/* 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.
|
||||
*/
|
||||
#if (HA_OPENSSL_VERSION_NUMBER < 0x1010000fL)
|
||||
#define EVP_MD_CTX_new EVP_MD_CTX_create
|
||||
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
|
||||
#endif
|
||||
|
||||
#endif /* USE_OPENSSL */
|
||||
#endif /* _COMMON_OPENSSL_COMPAT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user