]> granicus.if.org Git - mutt/commitdiff
Do not forget to handle special-case for gpg-agent.
authorMoritz Schulte <moritz@g10code.com>
Wed, 14 Jul 2004 05:58:30 +0000 (05:58 +0000)
committerMoritz Schulte <moritz@g10code.com>
Wed, 14 Jul 2004 05:58:30 +0000 (05:58 +0000)
pgp.c

diff --git a/pgp.c b/pgp.c
index 66bb33fb3a56ad9b46b548d67e1bab2bac85861d..99a569ac9b31901ad46ea6a8c01ea79d1b8f2f18 100644 (file)
--- 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;