1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 18:08:20 +00:00

Remove some code which was already moved from mpsp.c to interface.c

This commit is contained in:
jsteube 2016-11-12 15:46:42 +01:00
parent 273b48de87
commit 3da0232ead
2 changed files with 3 additions and 7 deletions

View File

@ -1067,7 +1067,7 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
hashconfig->pw_min = pw_min; hashconfig->pw_min = pw_min;
hashconfig->pw_max = pw_max; hashconfig->pw_max = pw_max;
// check if mask is not too large or too small for pw_min/pw_max (*2 if unicode) // check if mask is not too large or too small for pw_min/pw_max
u32 mask_min = hashconfig->pw_min; u32 mask_min = hashconfig->pw_min;
u32 mask_max = hashconfig->pw_max; u32 mask_max = hashconfig->pw_max;
@ -1091,12 +1091,6 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
return 0; return 0;
} }
if (hashconfig->opts_type & OPTS_TYPE_PT_UNICODE)
{
mask_min *= 2;
mask_max *= 2;
}
if (hashconfig->opts_type & OPTS_TYPE_PT_UNICODE) if (hashconfig->opts_type & OPTS_TYPE_PT_UNICODE)
{ {
const int rc = mp_css_unicode_expand (hashcat_ctx); const int rc = mp_css_unicode_expand (hashcat_ctx);

View File

@ -48,6 +48,8 @@ static char *status_get_rules_file (const hashcat_ctx_t *hashcat_ctx)
tmp_len += snprintf (tmp_buf + tmp_len, HCBUFSIZ_TINY - tmp_len - 1, "%s", user_options->rp_files[i]); tmp_len += snprintf (tmp_buf + tmp_len, HCBUFSIZ_TINY - tmp_len - 1, "%s", user_options->rp_files[i]);
tmp_buf[tmp_len] = 0;
return tmp_buf; // yes, user need to free() return tmp_buf; // yes, user need to free()
} }