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:
parent
5623087048
commit
92d485c8c7
@ -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
|
||||||
|
17
src/induct.c
17
src/induct.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user