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:
parent
313ef71b0f
commit
b76e4001bc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue