From b76e4001bc119b7e59c76ce458b1454c83427a8f Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Tue, 4 Feb 2020 22:55:49 +0100 Subject: [PATCH] gb.openssl: Fix HMac [GB.OPENSSL] * BUG: An internal routine's return value was mismatched causing HMac to return without data whenever the digest method was found. (Bug#1725) --- gb.openssl/src/c_hmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gb.openssl/src/c_hmac.c b/gb.openssl/src/c_hmac.c index 031a79d08..5f8196022 100644 --- a/gb.openssl/src/c_hmac.c +++ b/gb.openssl/src/c_hmac.c @@ -43,7 +43,7 @@ * HMac */ -static EVP_MD *get_method(GB_VARIANT_VALUE *varg) +static const EVP_MD *get_method(GB_VARIANT_VALUE *varg) { const EVP_MD *method; @@ -62,7 +62,7 @@ static EVP_MD *get_method(GB_VARIANT_VALUE *varg) if (!method) GB.Error("Unknown method"); - return NULL; + return method; } /**G