aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2018-12-21 05:17:20 -0800
committerDoug Hogan <[email protected]>2018-12-21 05:17:20 -0800
commitbd2ce3b7ba891b0bc4872fcf17e2eda44767bcd4 (patch)
tree08d62e045c35e0eeb65ef690d9d750ee8c0f7a4e /lib/crypto/c_src
parenta4bd9e958946a6cad3207b5a91daa2ceac2483e5 (diff)
downloadotp-bd2ce3b7ba891b0bc4872fcf17e2eda44767bcd4.tar.gz
otp-bd2ce3b7ba891b0bc4872fcf17e2eda44767bcd4.tar.bz2
otp-bd2ce3b7ba891b0bc4872fcf17e2eda44767bcd4.zip
Avoid unused warning with old OpenSSL versions per PR feedback
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/evp_compat.h8
1 files 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);