mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* gpg-agent.c (main): New option --batch. New option --debug-wait
n, so that it is possible to attach gdb when used in server mode. * query.c (agent_askpin): Don't ask in batch mode.
This commit is contained in:
parent
7606e3b33a
commit
61ba223221
4 changed files with 23 additions and 1 deletions
|
@ -134,7 +134,7 @@ all_digitsp( const char *s)
|
|||
|
||||
|
||||
|
||||
/* Call the Entry and ask for the PIN. We do chekc for a valid PIN
|
||||
/* Call the Entry and ask for the PIN. We do check for a valid PIN
|
||||
number here and repeat it as long as we have invalid formed
|
||||
numbers. */
|
||||
int
|
||||
|
@ -146,6 +146,9 @@ agent_askpin (const char *desc_text,
|
|||
struct entry_parm_s parm;
|
||||
const char *errtext = NULL;
|
||||
|
||||
if (opt.batch)
|
||||
return 0; /* fixme: we should return BAD PIN */
|
||||
|
||||
if (!pininfo || pininfo->max_length < 1)
|
||||
return seterr (Invalid_Value);
|
||||
if (!desc_text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue