mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-21 15:48:08 +00:00
Refactor self_test_disable variable to just self_test, same idea as outfile_autohex variable
This commit is contained in:
parent
7b52dad8c9
commit
ff94f4c9d0
@ -701,7 +701,7 @@ typedef enum user_options_defaults
|
||||
RUNTIME = 0,
|
||||
SCRYPT_TMTO = 0,
|
||||
SEGMENT_SIZE = 33554432,
|
||||
SELF_TEST_DISABLE = false,
|
||||
SELF_TEST = true,
|
||||
SHOW = false,
|
||||
SKIP = 0,
|
||||
SLOW_CANDIDATES = false,
|
||||
@ -2361,7 +2361,7 @@ typedef struct user_options
|
||||
bool remove;
|
||||
bool restore;
|
||||
bool restore_disable;
|
||||
bool self_test_disable;
|
||||
bool self_test;
|
||||
bool show;
|
||||
bool slow_candidates;
|
||||
bool speed_only;
|
||||
|
@ -287,7 +287,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
|
||||
hashconfig->opts_type |= OPTS_TYPE_MP_MULTI_DISABLE;
|
||||
}
|
||||
|
||||
if (user_options->self_test_disable == true)
|
||||
if (user_options->self_test == false)
|
||||
{
|
||||
hashconfig->opts_type |= OPTS_TYPE_SELF_TEST_DISABLE;
|
||||
}
|
||||
|
@ -1048,7 +1048,7 @@ HC_API_CALL void *thread_selftest (void *p)
|
||||
|
||||
user_options_t *user_options = hashcat_ctx->user_options;
|
||||
|
||||
if (user_options->self_test_disable == true) return NULL;
|
||||
if (user_options->self_test == false) return NULL;
|
||||
|
||||
hc_device_param_t *device_param = backend_ctx->devices_param + thread_param->tid;
|
||||
|
||||
|
@ -269,7 +269,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
|
||||
user_options->runtime = RUNTIME;
|
||||
user_options->scrypt_tmto = SCRYPT_TMTO;
|
||||
user_options->segment_size = SEGMENT_SIZE;
|
||||
user_options->self_test_disable = SELF_TEST_DISABLE;
|
||||
user_options->self_test = SELF_TEST;
|
||||
user_options->separator = SEPARATOR;
|
||||
user_options->session = PROGNAME;
|
||||
user_options->show = SHOW;
|
||||
@ -414,7 +414,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
|
||||
case IDX_OUTFILE_CHECK_DIR: user_options->outfile_check_dir = optarg; break;
|
||||
case IDX_HASH_INFO: user_options->hash_info = true; break;
|
||||
case IDX_FORCE: user_options->force = true; break;
|
||||
case IDX_SELF_TEST_DISABLE: user_options->self_test_disable = true; break;
|
||||
case IDX_SELF_TEST_DISABLE: user_options->self_test = false; break;
|
||||
case IDX_SKIP: user_options->skip = hc_strtoull (optarg, NULL, 10);
|
||||
user_options->skip_chgd = true; break;
|
||||
case IDX_LIMIT: user_options->limit = hc_strtoull (optarg, NULL, 10);
|
||||
@ -3280,7 +3280,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx)
|
||||
logfile_top_uint (user_options->runtime);
|
||||
logfile_top_uint (user_options->scrypt_tmto);
|
||||
logfile_top_uint (user_options->segment_size);
|
||||
logfile_top_uint (user_options->self_test_disable);
|
||||
logfile_top_uint (user_options->self_test);
|
||||
logfile_top_uint (user_options->slow_candidates);
|
||||
logfile_top_uint (user_options->show);
|
||||
logfile_top_uint (user_options->speed_only);
|
||||
|
Loading…
Reference in New Issue
Block a user