diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-09-19 13:56:56 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-09-19 13:56:56 +0200 |
commit | 898a9c892bcae6e2eebaf5eecfb3a7515c6acad3 (patch) | |
tree | b80f043ea8cb054d6e25f83dfc45198aa94a5d2e | |
parent | b64e11fdc1deab66b8e0c5334fbb8c7eb1d8eb56 (diff) | |
download | gnutls-898a9c892bcae6e2eebaf5eecfb3a7515c6acad3.tar.gz |
Make _gnutls_hash_copy work with registered hashes.
-rw-r--r-- | lib/gnutls_hash_int.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_hash_int.c b/lib/gnutls_hash_int.c index 3e217f874e..5ae4e6b1eb 100644 --- a/lib/gnutls_hash_int.c +++ b/lib/gnutls_hash_int.c @@ -126,6 +126,7 @@ _gnutls_hash_copy (digest_hd_st * dst, digest_hd_st * src) if (src->registered) { + dst->hd.rh.cc = src->hd.rh.cc; return src->hd.rh.cc->copy (&dst->hd.rh.ctx, src->hd.rh.ctx); } @@ -144,7 +145,7 @@ _gnutls_hash_copy (digest_hd_st * dst, digest_hd_st * src) void _gnutls_hash_output (digest_hd_st * handle, void *digest) { - int maclen; + size_t maclen; maclen = _gnutls_hash_get_algo_len (handle->algorithm); |