Files: Do several file and folder checks on startup rather than when they are actually used to avoid related error after eventual intense operations

This commit is contained in:
jsteube
2017-01-27 14:50:39 +01:00
parent 32e285f915
commit 84fcd8289f
10 changed files with 333 additions and 125 deletions

View File

@@ -19,6 +19,5 @@ void outfile_destroy (hashcat_ctx_t *hashcat_ctx);
int outfile_write_open (hashcat_ctx_t *hashcat_ctx);
void outfile_write_close (hashcat_ctx_t *hashcat_ctx);
int outfile_write (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const unsigned char *plain_ptr, const u32 plain_len, const u64 crackpos, const unsigned char *username, const u32 user_len, char tmp_buf[HCBUFSIZ_LARGE]);
int outfile_and_hashfile (hashcat_ctx_t *hashcat_ctx);
#endif // _OUTFILE_H

View File

@@ -28,4 +28,6 @@ u64 user_options_extra_amplifier (hashcat_ctx_t *hashcat_ctx);
void user_options_logger (hashcat_ctx_t *hashcat_ctx);
int user_options_check_files (hashcat_ctx_t *hashcat_ctx);
#endif // _USER_OPTIONS_H