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)
This commit is contained in:
Tobias Boege 2020-02-04 22:55:49 +01:00
parent 313ef71b0f
commit b76e4001bc

View file

@ -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