diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-05 15:13:43 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-15 12:47:27 +0000 |
commit | e32b52a27e20a45f51f489e4efc04d1ca72b9609 (patch) | |
tree | 95cbe2c2b77ed2b929b34f00f3ac794e0fb14408 /apps | |
parent | cc8b15c7e1934ba710fbce32676451acc9cbe8a0 (diff) |
Add support for setting raw private HMAC keys
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5520)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 4574550796..d5646c91e2 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -277,8 +277,8 @@ int dgst_main(int argc, char **argv) } if (hmac_key != NULL) { - sigkey = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, impl, - (unsigned char *)hmac_key, -1); + sigkey = EVP_PKEY_new_private_key(EVP_PKEY_HMAC, impl, + (unsigned char *)hmac_key, -1); if (sigkey == NULL) goto end; } |