diff options
Diffstat (limited to 'lib/gnutls_hash_int.c')
-rw-r--r-- | lib/gnutls_hash_int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_hash_int.c b/lib/gnutls_hash_int.c index 45cdbc6e54..7f3b322049 100644 --- a/lib/gnutls_hash_int.c +++ b/lib/gnutls_hash_int.c @@ -72,7 +72,7 @@ _gnutls_hash_init (digest_hd_st * dig, gnutls_digest_algorithm_t algorithm) { dig->registered = 1; dig->hd.rh.cc = cc; - if (cc->init (&dig->hd.rh.ctx) < 0) + if (cc->init (algorithm, &dig->hd.rh.ctx) < 0) { gnutls_assert (); return GNUTLS_E_HASH_FAILED; @@ -266,7 +266,7 @@ _gnutls_hmac_init (digest_hd_st * dig, gnutls_mac_algorithm_t algorithm, dig->registered = 1; dig->hd.rh.cc = cc; - if (cc->init (&dig->hd.rh.ctx) < 0) + if (cc->init (algorithm, &dig->hd.rh.ctx) < 0) { gnutls_assert (); return GNUTLS_E_HASH_FAILED; |