summaryrefslogtreecommitdiffstats
path: root/crypto/hmac/hm_pmeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/hmac/hm_pmeth.c')
-rw-r--r--crypto/hmac/hm_pmeth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/hmac/hm_pmeth.c b/crypto/hmac/hm_pmeth.c
index 6355a44413..b5e455733b 100644
--- a/crypto/hmac/hm_pmeth.c
+++ b/crypto/hmac/hm_pmeth.c
@@ -206,8 +206,9 @@ static int pkey_hmac_ctrl_str(EVP_PKEY_CTX *ctx,
}
if (!strcmp(type, "key"))
{
+ void *p = (void *)value;
return pkey_hmac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY,
- -1, (void *)value);
+ -1, p);
}
if (!strcmp(type, "hexkey"))
{