summaryrefslogtreecommitdiffstats
path: root/crypto/hmac
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-24 22:19:37 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-12 13:35:18 +0200
commit5acb2be58b693f504c76eb07f5b9133b02895f3b (patch)
tree0d13f344757b20270690f11786b543aa719b5294 /crypto/hmac
parentf1d3df3e69601f6f9f8070705543794f9b6696e2 (diff)
HMAC: use EVP_MD_flags(), not EVP_MD_meth_get_flags()
The latter should only be ussed with legacy methods. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9391)
Diffstat (limited to 'crypto/hmac')
-rw-r--r--crypto/hmac/hmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index 5d934e9588..d392753c49 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -39,7 +39,7 @@ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
* The HMAC construction is not allowed to be used with the
* extendable-output functions (XOF) shake128 and shake256.
*/
- if ((EVP_MD_meth_get_flags(md) & EVP_MD_FLAG_XOF) != 0)
+ if ((EVP_MD_flags(md) & EVP_MD_FLAG_XOF) != 0)
return 0;
if (key != NULL) {