Refactor deprecated_check_disable variable to just deprecated_check, same idea as outfile_autohex variable

pull/3895/head
jsteube 7 months ago
parent 652b66e642
commit 1255afb55c

@ -637,7 +637,7 @@ typedef enum user_options_defaults
BRAIN_SESSION = 0,
#endif
DEBUG_MODE = 0,
DEPRECATED_CHECK_DISABLE = false,
DEPRECATED_CHECK = true,
FORCE = false,
HWMON_DISABLE = false,
#if defined (__APPLE__)
@ -2331,7 +2331,7 @@ typedef struct user_options
bool brain_server;
#endif
bool force;
bool deprecated_check_disable;
bool deprecated_check;
bool hwmon_disable;
bool hash_info;
bool hex_charset;

@ -547,7 +547,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
if (module_ctx->module_deprecated_notice != MODULE_DEFAULT)
{
if (user_options->deprecated_check_disable == false)
if (user_options->deprecated_check == true)
{
if ((user_options->show == true) || (user_options->left == true))
{

@ -204,7 +204,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
user_options->custom_charset_4 = NULL;
user_options->debug_file = NULL;
user_options->debug_mode = DEBUG_MODE;
user_options->deprecated_check_disable = DEPRECATED_CHECK_DISABLE;
user_options->deprecated_check = DEPRECATED_CHECK;
user_options->encoding_from = ENCODING_FROM;
user_options->encoding_to = ENCODING_TO;
user_options->force = FORCE;
@ -397,7 +397,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
case IDX_RESTORE: user_options->restore = true; break;
case IDX_QUIET: user_options->quiet = true; break;
case IDX_SHOW: user_options->show = true; break;
case IDX_DEPRECATED_CHECK_DISABLE: user_options->deprecated_check_disable = true; break;
case IDX_DEPRECATED_CHECK_DISABLE: user_options->deprecated_check = false; break;
case IDX_LEFT: user_options->left = true; break;
case IDX_ADVICE_DISABLE: user_options->advice = false; break;
case IDX_USERNAME: user_options->username = true; break;

Loading…
Cancel
Save