1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-01 18:40:57 +00:00

Removed function induct_ctx_cleanup() from induct.c - code was moved into hashcat.c

This commit is contained in:
jsteube 2016-11-16 10:13:40 +01:00
parent 5623087048
commit 92d485c8c7
2 changed files with 0 additions and 18 deletions

View File

@ -14,7 +14,6 @@ static const char INDUCT_DIR[] = "induct";
int induct_ctx_init (hashcat_ctx_t *hashcat_ctx); int induct_ctx_init (hashcat_ctx_t *hashcat_ctx);
void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx); void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx);
void induct_ctx_cleanup (hashcat_ctx_t *hashcat_ctx);
void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx); void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // _INDUCT_H #endif // _INDUCT_H

View File

@ -108,23 +108,6 @@ void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx)
qsort (induct_ctx->induction_dictionaries, (size_t) induct_ctx->induction_dictionaries_cnt, sizeof (char *), sort_by_mtime); qsort (induct_ctx->induction_dictionaries, (size_t) induct_ctx->induction_dictionaries_cnt, sizeof (char *), sort_by_mtime);
} }
void induct_ctx_cleanup (hashcat_ctx_t *hashcat_ctx)
{
induct_ctx_t *induct_ctx = hashcat_ctx->induct_ctx;
if (induct_ctx->enabled == false) return;
for (int file_pos = 0; file_pos < induct_ctx->induction_dictionaries_cnt; file_pos++)
{
hc_stat_t induct_stat;
if (hc_stat (induct_ctx->induction_dictionaries[file_pos], &induct_stat) == 0)
{
unlink (induct_ctx->induction_dictionaries[file_pos]);
}
}
}
void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx) void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
{ {
induct_ctx_t *induct_ctx = hashcat_ctx->induct_ctx; induct_ctx_t *induct_ctx = hashcat_ctx->induct_ctx;