summaryrefslogtreecommitdiff
path: root/lib/hash_int.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
committerDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
commit999525211e1a5a22194411a4b078259137f5fe19 (patch)
tree3927532d2baa80554b30d4d446d5250868f988a2 /lib/hash_int.c
parent3c137c9f2888334596fb9f4313d4389d39afe8fd (diff)
parentb0be5d7c39d4a5f7d29db4630926a4cef7c3edce (diff)
downloadgnutls-999525211e1a5a22194411a4b078259137f5fe19.tar.gz
Merge branch 'tmp-backport-3.6' into 'gnutls_3_6_x'
Backport bug fixes from master to gnutls_3_6_x See merge request gnutls/gnutls!1317
Diffstat (limited to 'lib/hash_int.c')
-rw-r--r--lib/hash_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hash_int.c b/lib/hash_int.c
index d326960e80..90ae6cf140 100644
--- a/lib/hash_int.c
+++ b/lib/hash_int.c
@@ -80,7 +80,7 @@ int _gnutls_digest_exists(gnutls_digest_algorithm_t algo)
{
const gnutls_crypto_digest_st *cc = NULL;
- if (is_mac_algo_forbidden(algo))
+ if (is_mac_algo_forbidden(DIG_TO_MAC(algo)))
return gnutls_assert_val(GNUTLS_E_UNWANTED_ALGORITHM);
cc = _gnutls_get_crypto_digest(algo);