aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/evp_compat.h
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-04 01:24:04 -0800
committerDoug Hogan <[email protected]>2019-01-08 01:11:59 -0800
commit6c8560e288ef430ffa8d0baa567013a64f500e8e (patch)
treed2affb471e8944619d00cc95497a8f33e93bc7c1 /lib/crypto/c_src/evp_compat.h
parent142c109909e43606312885dad233fc1a74a547d4 (diff)
downloadotp-6c8560e288ef430ffa8d0baa567013a64f500e8e.tar.gz
otp-6c8560e288ef430ffa8d0baa567013a64f500e8e.tar.bz2
otp-6c8560e288ef430ffa8d0baa567013a64f500e8e.zip
Revamp EVP_MD_CTX_free()
* Mention that these were renamed (and aliased) in 1.1.0. * Use extra paren around macro argument when expanding.
Diffstat (limited to 'lib/crypto/c_src/evp_compat.h')
-rw-r--r--lib/crypto/c_src/evp_compat.h3
1 files changed, 2 insertions, 1 deletions
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);