From 37983de4b219ae0f50196b295b30492910decad6 Mon Sep 17 00:00:00 2001 From: unix-ninja Date: Tue, 16 Oct 2018 17:39:46 -0400 Subject: [PATCH] Fix compile warnings in totp_parse_hash() --- include/interface.h | 1 + src/interface.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/interface.h b/include/interface.h index 0ccfd8eb5..7df40ec72 100644 --- a/include/interface.h +++ b/include/interface.h @@ -1597,6 +1597,7 @@ int filevault2_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_bu int wpa_pmkid_pbkdf2_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSED hashconfig_t *hashconfig); int wpa_pmkid_pmk_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSED hashconfig_t *hashconfig); int ansible_vault_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSED hashconfig_t *hashconfig); +int totp_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSED hashconfig_t *hashconfig); /** * hook functions diff --git a/src/interface.c b/src/interface.c index fcd665a34..a5b684e24 100644 --- a/src/interface.c +++ b/src/interface.c @@ -5197,7 +5197,7 @@ int totp_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSE } if (rc_tokenizer != PARSER_OK) return (rc_tokenizer); - u8 *hash_pos = token.buf[0]; + //u8 *hash_pos = token.buf[0]; digest[1] = otp_code;