Make tuning_db support modular

This commit is contained in:
jsteube
2016-09-30 12:58:06 +02:00
parent 1585768044
commit eb6dffd52a
4 changed files with 58 additions and 44 deletions
+2 -2
View File
@@ -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
+3
View File
@@ -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;