diff options
author | Doug Hogan <[email protected]> | 2019-01-04 01:24:04 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2019-01-08 01:11:59 -0800 |
commit | 6c8560e288ef430ffa8d0baa567013a64f500e8e (patch) | |
tree | d2affb471e8944619d00cc95497a8f33e93bc7c1 /lib/crypto/c_src | |
parent | 142c109909e43606312885dad233fc1a74a547d4 (diff) | |
download | otp-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')
-rw-r--r-- | lib/crypto/c_src/evp_compat.h | 3 |
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); |