diff options
Diffstat (limited to '')
-rw-r--r-- | g10/passphrase.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c index 10dd3ff81..d3989bbe0 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -1007,7 +1007,9 @@ passphrase_clear_cache ( u32 *keyid, int algo ) * Ask for a passphrase and return that string. */ char * -ask_passphrase (const char *description, const char *prompt, int *canceled) +ask_passphrase (const char *description, + const char *promptid, + const char *prompt, int *canceled) { char *pw = NULL; @@ -1042,7 +1044,7 @@ ask_passphrase (const char *description, const char *prompt, int *canceled) pw = NULL; } else { - pw = cpr_get_hidden("passphrase.ask", + pw = cpr_get_hidden(promptid? promptid : "passphrase.ask", prompt?prompt : _("Enter passphrase: ") ); tty_kill_prompt(); } |