mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
prompt change.
This commit is contained in:
parent
75bf2df727
commit
e27ca6e059
@ -1,3 +1,8 @@
|
|||||||
|
2008-07-30 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* app-openpgp.c (verify_a_chv): Use xtrymalloc and make the prompt
|
||||||
|
for CHV2 more user friendly.
|
||||||
|
|
||||||
2008-07-03 Werner Koch <wk@g10code.com>
|
2008-07-03 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* app-openpgp.c (do_readcert): New.
|
* app-openpgp.c (do_readcert): New.
|
||||||
|
@ -1412,7 +1412,7 @@ verify_a_chv (app_t app,
|
|||||||
#define PROMPTSTRING _("||Please enter the PIN%%0A[sigs done: %lu]")
|
#define PROMPTSTRING _("||Please enter the PIN%%0A[sigs done: %lu]")
|
||||||
size_t promptsize = strlen (PROMPTSTRING) + 50;
|
size_t promptsize = strlen (PROMPTSTRING) + 50;
|
||||||
|
|
||||||
prompt = xmalloc (promptsize);
|
prompt = xtrymalloc (promptsize);
|
||||||
if (!prompt)
|
if (!prompt)
|
||||||
return gpg_error_from_syserror ();
|
return gpg_error_from_syserror ();
|
||||||
snprintf (prompt, promptsize-1, PROMPTSTRING, sigcount);
|
snprintf (prompt, promptsize-1, PROMPTSTRING, sigcount);
|
||||||
@ -1421,7 +1421,7 @@ verify_a_chv (app_t app,
|
|||||||
#undef PROMPTSTRING
|
#undef PROMPTSTRING
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rc = pincb (pincb_arg, "PIN", pinvalue);
|
rc = pincb (pincb_arg, _("||Please enter the PIN"), pinvalue);
|
||||||
|
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user