From 6c8560e288ef430ffa8d0baa567013a64f500e8e Mon Sep 17 00:00:00 2001 From: Doug Hogan Date: Fri, 4 Jan 2019 01:24:04 -0800 Subject: Revamp EVP_MD_CTX_free() * Mention that these were renamed (and aliased) in 1.1.0. * Use extra paren around macro argument when expanding. --- lib/crypto/c_src/evp_compat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/crypto/c_src/evp_compat.h') diff --git a/lib/crypto/c_src/evp_compat.h b/lib/crypto/c_src/evp_compat.h index e289ce5e76..996985799a 100644 --- a/lib/crypto/c_src/evp_compat.h +++ b/lib/crypto/c_src/evp_compat.h @@ -55,8 +55,9 @@ static INLINE void HMAC_CTX_free(HMAC_CTX *ctx) CRYPTO_free(ctx); } +/* Renamed in 1.1.0 */ #define EVP_MD_CTX_new() EVP_MD_CTX_create() -#define EVP_MD_CTX_free(ctx) EVP_MD_CTX_destroy(ctx) +#define EVP_MD_CTX_free(ctx) EVP_MD_CTX_destroy((ctx)) static INLINE void *BN_GENCB_get_arg(BN_GENCB *cb); -- cgit v1.2.3