From 4fe68b0d4feeb83f83366dcb7d4708a433dc1023 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 6 Mar 2023 18:39:26 +0000 Subject: [PATCH] Fix missing const keyword in module_hash_encode() in -m 29600 --- src/modules/module_29600.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/module_29600.c b/src/modules/module_29600.c index 88ad7fcbc..9d7eb86f9 100644 --- a/src/modules/module_29600.c +++ b/src/modules/module_29600.c @@ -103,9 +103,10 @@ u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED c int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len) { - terra_t *terra = (terra_t *) esalt_buf; u32 *digest = (u32 *) digest_buf; + terra_t *terra = (terra_t *) esalt_buf; + hc_token_t token; token.token_cnt = 3; @@ -195,10 +196,10 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const void *digest_buf, MAYBE_UNUSED const salt_t *salt, MAYBE_UNUSED const void *esalt_buf, MAYBE_UNUSED const void *hook_salt_buf, MAYBE_UNUSED const hashinfo_t *hash_info, char *line_buf, MAYBE_UNUSED const int line_size) { - terra_t *terra = (terra_t *) esalt_buf; - u32 *digest = (u32 *) digest_buf; + const terra_t *terra = (const terra_t *) esalt_buf; + // salt: char salt_hex[32 + 1] = { 0 };