From 529eab29f4b079df599fc0cfc0377b3f883331f2 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 24 Sep 2015 12:38:38 +0800 Subject: [PATCH] fix a typo --- src/encrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encrypt.c b/src/encrypt.c index 25b0ebaa..06248097 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -1037,7 +1037,7 @@ int ss_onetimeauth(char *auth, char *msg, int msg_len, uint8_t *iv) memcpy(auth_key + enc_iv_len, enc_key, enc_key_len); #if defined(USE_CRYPTO_OPENSSL) - HMAC(EVP_sha1(), auth_key, enc_iv_len + enc_key_len, (uint8_t *)msg, msg_len, auth, NULL); + HMAC(EVP_sha1(), auth_key, enc_iv_len + enc_key_len, (uint8_t *)msg, msg_len, (uint8_t *)auth, NULL); #else sha1_hmac(auth_key, enc_iv_len + enc_key_len, (uint8_t *)msg, msg_len, (uint8_t *)auth); #endif