From: Moritz Schulte Date: Wed, 14 Jul 2004 05:58:30 +0000 (+0000) Subject: Do not forget to handle special-case for gpg-agent. X-Git-Tag: mutt-1-5-15-rel~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4c8fc7b0ff9bc3d0b911f5e1d4d743258355176;p=mutt Do not forget to handle special-case for gpg-agent. --- diff --git a/pgp.c b/pgp.c index 66bb33fb..99a569ac 100644 --- a/pgp.c +++ b/pgp.c @@ -71,6 +71,12 @@ int pgp_valid_passphrase (void) { time_t now = time (NULL); + if (pgp_use_gpg_agent()) + { + *PgpPass = 0; + return 1; /* handled by gpg-agent */ + } + if (now < PgpExptime) /* Use cached copy. */ return 1;