1
0
Fork 0
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:
Werner Koch 2005-05-24 12:39:42 +00:00
parent 2ab2a874a0
commit d0f5655d19
7 changed files with 66 additions and 51 deletions

View file

@ -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 )