From 0f8b7f04cff5fbdccd86a1b46737bf29a16ec217 Mon Sep 17 00:00:00 2001 From: banderlog Date: Sat, 12 Jul 2025 13:51:34 +0300 Subject: [PATCH] adapt the naming convention? --- include/types.h | 4 ++-- src/user_options.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/types.h b/include/types.h index f587247f3..025dc04b5 100644 --- a/include/types.h +++ b/include/types.h @@ -696,7 +696,7 @@ typedef enum user_options_defaults BRAIN_SERVER = false, BRAIN_SESSION = 0, #endif - COLOR = false, + COLOR_CRACKED = false, DEBUG_MODE = 0, DEPRECATED_CHECK = true, DYNAMIC_X = false, @@ -816,7 +816,7 @@ typedef enum user_options_map IDX_BRAIN_SESSION = 0xff0f, IDX_BRAIN_SESSION_WHITELIST = 0xff10, #endif - IDX_COLOR = 0xff59, + IDX_COLOR_CRACKED = 0xff59, IDX_BRIDGE_PARAMETER1 = 0xff80, IDX_BRIDGE_PARAMETER2 = 0xff81, IDX_BRIDGE_PARAMETER3 = 0xff82, diff --git a/src/user_options.c b/src/user_options.c index e68f05614..00282972a 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -167,7 +167,7 @@ static const struct option long_options[] = {"brain-session", required_argument, NULL, IDX_BRAIN_SESSION}, {"brain-session-whitelist", required_argument, NULL, IDX_BRAIN_SESSION_WHITELIST}, #endif - {"color-cracked", no_argument, NULL, IDX_COLOR}, + {"color-cracked", no_argument, NULL, IDX_COLOR_CRACKED}, {NULL, 0, NULL, 0 } }; @@ -216,7 +216,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx) user_options->brain_session = BRAIN_SESSION; user_options->brain_session_whitelist = NULL; #endif - user_options->color_cracked = COLOR; + user_options->color_cracked = COLOR_CRACKED; user_options->bridge_parameter1 = NULL; user_options->bridge_parameter2 = NULL; user_options->bridge_parameter3 = NULL; @@ -599,7 +599,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv) case IDX_BRAIN_SESSION: user_options->brain_session = hc_strtoul (optarg, NULL, 16); break; case IDX_BRAIN_SESSION_WHITELIST: user_options->brain_session_whitelist = optarg; break; #endif - case IDX_COLOR: user_options->color_cracked = true; break; + case IDX_COLOR_CRACKED: user_options->color_cracked = true; break; } }