From bd2ce3b7ba891b0bc4872fcf17e2eda44767bcd4 Mon Sep 17 00:00:00 2001 From: Doug Hogan Date: Fri, 21 Dec 2018 05:17:20 -0800 Subject: Avoid unused warning with old OpenSSL versions per PR feedback --- lib/crypto/c_src/evp_compat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/crypto/c_src/evp_compat.h b/lib/crypto/c_src/evp_compat.h index f4eec69b09..98c861c45e 100644 --- a/lib/crypto/c_src/evp_compat.h +++ b/lib/crypto/c_src/evp_compat.h @@ -32,17 +32,17 @@ * we don't have to sprinkle ifdefs throughout the code. */ -static HMAC_CTX *HMAC_CTX_new(void); -static void HMAC_CTX_free(HMAC_CTX *ctx); +static INLINE HMAC_CTX *HMAC_CTX_new(void); +static INLINE void HMAC_CTX_free(HMAC_CTX *ctx); -static HMAC_CTX *HMAC_CTX_new() +static INLINE HMAC_CTX *HMAC_CTX_new() { HMAC_CTX *ctx = CRYPTO_malloc(sizeof(HMAC_CTX), __FILE__, __LINE__); HMAC_CTX_init(ctx); return ctx; } -static void HMAC_CTX_free(HMAC_CTX *ctx) +static INLINE void HMAC_CTX_free(HMAC_CTX *ctx) { HMAC_CTX_cleanup(ctx); CRYPTO_free(ctx); -- cgit v1.2.3