diff options
author | Werner Koch <[email protected]> | 2001-12-14 15:39:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-12-14 15:39:44 +0000 |
commit | 61ba2232214b01a88dd689afdd3e1935f1327595 (patch) | |
tree | d08ec6ee869a47e1c511cbef04e7cc8519a1a775 /agent/query.c | |
parent | * util.h (digitp, hexdigitp): New ctype like macros. (diff) | |
download | gnupg-61ba2232214b01a88dd689afdd3e1935f1327595.tar.gz gnupg-61ba2232214b01a88dd689afdd3e1935f1327595.zip |
* 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.
Diffstat (limited to 'agent/query.c')
-rw-r--r-- | agent/query.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/query.c b/agent/query.c index dd2139fad..98a5b2639 100644 --- a/agent/query.c +++ b/agent/query.c @@ -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) |