Move reading master key in command line utilities.

Move and rename _read_mk->tools_read_mk in utils_password.c
This commit is contained in:
Ondrej Kozina
2018-04-10 15:22:56 +02:00
committed by Milan Broz
parent 965e0237a3
commit 169d45fbdb
3 changed files with 31 additions and 29 deletions

View File

@@ -98,6 +98,8 @@ void tools_time_progress(uint64_t device_size, uint64_t bytes,
struct timeval *start_time, struct timeval *end_time);
int tools_wipe_progress(uint64_t size, uint64_t offset, void *usrptr);
int tools_read_mk(const char *file, char **key, int keysize);
/* Log */
#define log_dbg(x...) clogger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)
#define log_std(x...) clogger(NULL, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x)