mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* passphrase.c (ask_passphrase): Unescape the description string.
* cardglue.c (unescape_status_string): Removed. Changed all caller to use ... * misc.c (unescape_percent_string): New.
This commit is contained in:
parent
2ab2a874a0
commit
d0f5655d19
7 changed files with 66 additions and 51 deletions
|
@ -746,7 +746,16 @@ ask_passphrase (const char *description,
|
|||
*canceled = 0;
|
||||
|
||||
if (!opt.batch && description)
|
||||
tty_printf ("\n%s\n",description);
|
||||
{
|
||||
if (strchr (description, '%'))
|
||||
{
|
||||
char *tmp = unescape_percent_string (description);
|
||||
tty_printf ("\n%s\n", tmp);
|
||||
xfree (tmp);
|
||||
}
|
||||
else
|
||||
tty_printf ("\n%s\n",description);
|
||||
}
|
||||
|
||||
agent_died:
|
||||
if ( opt.use_agent )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue