- {
- extern char PgpPass[STRING];
- extern time_t PgpExptime;
-
- if (pgp_use_gpg_agent())
- {
- *PgpPass = 0;
- return 1; /* handled by gpg-agent */
- }
-
- if (now < PgpExptime) return 1; /* just use the cached copy. */
- crypt_pgp_void_passphrase ();
-
- if (mutt_get_password (_("Enter PGP passphrase:"),
- PgpPass, sizeof (PgpPass)) == 0)
- {
- PgpExptime = time (NULL) + PgpTimeout;
- return (1);
- }
- else
- PgpExptime = 0;
- }