aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-08-06 14:35:03 +0200
committerKim Alvefur <zash@zash.se>2013-08-06 14:35:03 +0200
commit323683f4074f73a3a21ca71b7691d29a05716a14 (patch)
tree43e921f6bd3937398e258a64aa064ae01360625e /util-src
parentaffa1690f4a7c003a3eac9b42ff0dfe72d92201e (diff)
parent2d80fe3bbd1722cc703390bd9055902f7dd843bf (diff)
downloadprosody-323683f4074f73a3a21ca71b7691d29a05716a14.tar.gz
prosody-323683f4074f73a3a21ca71b7691d29a05716a14.zip
Merge 0.9->trunk
Diffstat (limited to 'util-src')
-rw-r--r--util-src/hashes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index 39737ae0..ad25c1a7 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -85,7 +85,7 @@ static void hmac(struct hash_desc *desc, const char *key, size_t key_len,
if (key_len > 64) {
desc->Init(desc->ctx);
desc->Update(desc->ctx, key, key_len);
- desc->Final(desc->ctx, hashedKey);
+ desc->Final(hashedKey, desc->ctx);
key = (const char*)hashedKey;
key_len = desc->digestLength;
}