diff --git a/src/modules/module_20510.c b/src/modules/module_20510.c index baad333a6..031572e2c 100644 --- a/src/modules/module_20510.c +++ b/src/modules/module_20510.c @@ -129,6 +129,13 @@ typedef struct pkzip_extra } pkzip_extra_t; +u32 module_pw_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) +{ + const u32 pw_min = 6; + + return pw_min; +} + u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { const u64 tmp_size = (const u64) sizeof (pkzip_extra_t); @@ -264,7 +271,7 @@ void module_init (module_ctx_t *module_ctx) module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT; module_ctx->module_pwdump_column = MODULE_DEFAULT; module_ctx->module_pw_max = MODULE_DEFAULT; - module_ctx->module_pw_min = MODULE_DEFAULT; + module_ctx->module_pw_min = module_pw_min; module_ctx->module_salt_max = MODULE_DEFAULT; module_ctx->module_salt_min = MODULE_DEFAULT; module_ctx->module_salt_type = module_salt_type; diff --git a/tools/test_modules/m20510.pm b/tools/test_modules/m20510.pm index 2af8ca390..2bc56612e 100644 --- a/tools/test_modules/m20510.pm +++ b/tools/test_modules/m20510.pm @@ -8,7 +8,7 @@ use strict; use warnings; -sub module_constraints { [[0, 250], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] } +sub module_constraints { [[6, 250], [-1, -1], [-1, -1], [-1, -1], [-1, -1]] } my @crc32tab = (