summaryrefslogtreecommitdiffstats
path: root/doc/gpg-agent.texi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-12-10 13:41:15 +0100
committerWerner Koch <wk@gnupg.org>2008-12-10 13:41:15 +0100
commitc3752d10574170e19dceaee5e6f0805498678768 (patch)
treec523f969712d7bac08bec5154ca84ba0cb89d94d /doc/gpg-agent.texi
parentfix a gpgconf default. Cosmetic changes. (diff)
downloadgnupg2-c3752d10574170e19dceaee5e6f0805498678768.tar.xz
gnupg2-c3752d10574170e19dceaee5e6f0805498678768.zip
Add option --no-ask for GET_PASSPHRASE.
Diffstat (limited to 'doc/gpg-agent.texi')
-rw-r--r--doc/gpg-agent.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi
index fdbbdae2f..2900154a9 100644
--- a/doc/gpg-agent.texi
+++ b/doc/gpg-agent.texi
@@ -1036,7 +1036,7 @@ special handling of passphrases. This command uses a syntax which helps
clients to use the agent with minimum effort.
@example
- GET_PASSPHRASE [--data] [--check] @var{cache_id} [@var{error_message} @var{prompt} @var{description}]
+ GET_PASSPHRASE [--data] [--check] [--no-ask] @var{cache_id} [@var{error_message} @var{prompt} @var{description}]
@end example
@var{cache_id} is expected to be a string used to identify a cached
@@ -1067,6 +1067,11 @@ If the option @option{--check} is used, the standard passphrase
constraints checks are applied. A check is not done if the passphrase
has been found in the cache.
+If the option @option{--no-ask} is used and the passphrase is not in the
+cache the user will not be asked to enter a passphrase but the error
+code @code{GPG_ERR_NO_DATA} is returned.
+
+
@example
CLEAR_PASSPHRASE @var{cache_id}
@end example