1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fixed an email/DN bug.

Changed pinentry prompts.
This commit is contained in:
Werner Koch 2008-03-13 08:46:08 +00:00
parent fa800e7c86
commit 6a78bca874
34 changed files with 2113 additions and 1964 deletions

View file

@ -1,3 +1,8 @@
2008-03-13 Werner Koch <wk@g10code.com>
* passphrase.c (PROMPTSTRING): Change string to me more similar to
the X.509 prompt.
2008-02-26 Werner Koch <wk@g10code.com>
* getkey.c (get_pubkey_byname): Fix comment.

View file

@ -306,10 +306,11 @@ passphrase_get ( u32 *keyid, int mode, const char *cacheid,
#undef KEYIDSTRING
#define PROMPTSTRING _("You need a passphrase to unlock the secret" \
" key for user:\n" \
#define PROMPTSTRING _("Please enter the passphrase to unlock the" \
" secret key for the OpenPGP certificate:\n" \
"\"%.*s\"\n" \
"%u-bit %s key, ID %s, created %s%s\n" )
"%u-bit %s key, ID %s,\n" \
"created %s%s.\n" )
atext = xmalloc ( 100 + strlen (PROMPTSTRING)
+ uidlen + 15 + strlen(algo_name) + keystrlen()
@ -448,7 +449,8 @@ ask_passphrase (const char *description,
{
if (strchr (description, '%'))
{
char *tmp = unescape_percent_string (description);
char *tmp = unescape_percent_string
((const unsigned char*)description);
tty_printf ("\n%s\n", tmp);
xfree (tmp);
}