From: Eugene Crosser Date: Wed, 15 Aug 2018 16:31:37 +0000 (+0200) Subject: openssl: make it use 'shortcut' function HMAC() X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=f362aa1f9cfeedd86f89cf1cdf7558aa6782ceba 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 --- 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);