talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d954a01de48f90a726e79995f4daeed3e9fee11b
parent e5e9653deef1b688faf866b64d25e817f45b6666
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 10 Dec 2017 10:49:00 +0100

Add public call to get master password

Diffstat:
Msrc/password.c | 2+-
Msrc/password.h | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/password.c b/src/password.c @@ -110,7 +110,7 @@ static guchar *_make_key_deriv(const gchar *passphrase, guint rounds, return NULL; } -static const gchar *master_passphrase() +const gchar *master_passphrase() { gchar *input; gboolean end = FALSE; diff --git a/src/password.h b/src/password.h @@ -27,6 +27,10 @@ #include <glib.h> #ifndef PASSWORD_CRYPTO_OLD +/* Returns a pointer to master passphrase, asking the user + * if necessary. Do not free the return value. */ +const gchar *master_passphrase(); + /* Returns TRUE if there is a master passphrase set in preferences. */ gboolean master_passphrase_is_set(); /* Returns TRUE if input contains correct master passphrase, as set