aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-08-06 14:31:20 +0200
committerKim Alvefur <zash@zash.se>2013-08-06 14:31:20 +0200
commitd33a7bf6bc29af9e3086215d2827f59db6f3cfc5 (patch)
tree4ab30767adf5a58d1654ce5ff43cecb2fed4a8b9 /util-src/hashes.c
parentb8347b9dc1586f95989a9c131ea38e88df68d2a0 (diff)
downloadprosody-d33a7bf6bc29af9e3086215d2827f59db6f3cfc5.tar.gz
prosody-d33a7bf6bc29af9e3086215d2827f59db6f3cfc5.zip
util.hashes: Correct argument order
Diffstat (limited to 'util-src/hashes.c')
-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;
}