Make tuning_db support modular
This commit is contained in:
+2
-2
@@ -11,9 +11,9 @@
|
||||
|
||||
#define TUNING_DB_FILE "hashcat.hctune"
|
||||
|
||||
int tuning_db_init (tuning_db_t *tuning_db, const user_options_t *user_options, const folder_config_t *folder_config);
|
||||
void tuning_db_destroy (tuning_db_t *tuning_db);
|
||||
tuning_db_t *tuning_db_alloc (FILE *fp);
|
||||
tuning_db_t *tuning_db_init (const char *tuning_db_file);
|
||||
|
||||
tuning_db_entry_t *tuning_db_search (const tuning_db_t *tuning_db, const char *device_name, const cl_device_type device_type, int attack_mode, const int hash_type);
|
||||
|
||||
#endif // _TUNINGDB_H
|
||||
|
||||
@@ -991,6 +991,8 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bool enabled;
|
||||
|
||||
tuning_db_alias_t *alias_buf;
|
||||
int alias_cnt;
|
||||
|
||||
@@ -1353,6 +1355,7 @@ typedef struct
|
||||
status_ctx_t *status_ctx;
|
||||
session_ctx_t *session_ctx;
|
||||
straight_ctx_t *straight_ctx;
|
||||
tuning_db_t *tuning_db;
|
||||
user_options_extra_t *user_options_extra;
|
||||
user_options_t *user_options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user