From f362aa1f9cfeedd86f89cf1cdf7558aa6782ceba Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Wed, 15 Aug 2018 18:31:37 +0200 Subject: [PATCH] openssl: make it use 'shortcut' function HMAC() Actually, we may avoid the complexity of managing HMAC_CTX by using "convenience" function HMAC() instead of CTX-based family. In this form, the program compiles against openssl 1.1.x (but the configure option "--disable-openssl" is kept in case someone dislikes openssl). Signed-off-by: Eugene Crosser --- ossl_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ossl_crypto.c b/ossl_crypto.c index e0e10bc..4cf0afa 100644 --- a/ossl_crypto.c +++ b/ossl_crypto.c @@ -75,7 +75,7 @@ static unsigned long ossl_hmac(const void *key, int const keylen, const void *pt, const int tlen, void *tag, int *taglen) { -#if 1 +#if 0 HMAC_CTX hctx; HMAC_CTX_init(&hctx); -- 2.39.2