Controlling number of passphrase attempts
dshaw at jabberwocky.com
Thu Sep 4 00:22:27 CEST 2008
On Tue, Sep 02, 2008 at 11:20:23AM -0300, Michael Gauthier wrote:
> Is it possible to control the number of times GPG asks for a passphrase?
> I'm writing a library using GPG with the --status-fd and --command-fd
> arguments. When a bad passphrase is provided, GPG tried three times to
> get the correct passphrase. I'd like it to try once and then fail.
> I would use --passphrase-fd except it does not support entering more
> than one passphrase in the case that something is decrypted or signed
> using multiple keys.
Your best bet is to just return an empty string to the second and
third "GET_HIDDEN passphrase.enter" command prompt, if you don't want
to keep trying.
More information about the Gnupg-users