diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-11-29 12:08:44 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-11-29 12:23:25 +0200 |
commit | bc3e43d5f121e404aa32212dcfcc5027de807056 (patch) | |
tree | b4993e96b3e23ba1b4f63fff5b00dd9d1bf3e31b /lib/gnutls_ui.c | |
parent | 0477fd0883cbd9cd9809c3b8029ce146187b5431 (diff) | |
download | gnutls-bc3e43d5f121e404aa32212dcfcc5027de807056.tar.gz |
Merged the two internal hash API functions, to simplify and reduce code.
gnutls_hmac* and gnutls_hash* were merged to gnutls_hash API.
Diffstat (limited to 'lib/gnutls_ui.c')
-rw-r--r-- | lib/gnutls_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_ui.c b/lib/gnutls_ui.c index baed5fa556..66bac34242 100644 --- a/lib/gnutls_ui.c +++ b/lib/gnutls_ui.c @@ -557,7 +557,7 @@ gnutls_fingerprint (gnutls_digest_algorithm_t algo, const gnutls_datum_t * data, void *result, size_t * result_size) { - digest_hd_st td; + hash_hd_st td; int hash_len = _gnutls_hash_get_algo_len (HASH2MAC (algo)); if (hash_len < 0 || (unsigned) hash_len > *result_size || result == NULL) @@ -569,7 +569,7 @@ gnutls_fingerprint (gnutls_digest_algorithm_t algo, if (result) { - int ret = _gnutls_hash_init (&td, HASH2MAC (algo)); + int ret = _gnutls_hash_init (&td, HASH2MAC (algo), NULL, 0); if (ret < 0) { gnutls_assert (); |