summaryrefslogtreecommitdiffstats
path: root/crypt.c
diff options
context:
space:
mode:
authorMoritz Schulte <Moritz.Schulte@ruhr-uni-bochum.de>2007-02-24 06:12:19 +0000
committerMoritz Schulte <Moritz.Schulte@ruhr-uni-bochum.de>2007-02-24 06:12:19 +0000
commitfce975f5786772eaf73aab7478a503060ee504c7 (patch)
treecab6fe94a3c06d317598338bd9cb0101e7148de9 /crypt.c
parent6c4a226429b13f46f3ddd00a76aed0b82534b60f (diff)
PKA signature verification via GPGME, controlled by $crypt_use_pka.
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypt.c b/crypt.c
index 473e099a..67d7276b 100644
--- a/crypt.c
+++ b/crypt.c
@@ -169,6 +169,18 @@ int mutt_protect (HEADER *msg, char *keylist)
if ((WithCrypto & APPLICATION_PGP))
tmp_pgp_pbody = msg->content;
+ if (option (OPTCRYPTUSEPKA) && (msg->security & SIGN))
+ {
+ /* Set sender (necessary for e.g. PKA). */
+
+ if ((WithCrypto & APPLICATION_SMIME)
+ && (msg->security & APPLICATION_SMIME))
+ crypt_smime_set_sender (msg->env->from->mailbox);
+ else if ((WithCrypto & APPLICATION_PGP)
+ && (msg->security & APPLICATION_PGP))
+ crypt_pgp_set_sender (msg->env->from->mailbox);
+ }
+
if (msg->security & SIGN)
{
if ((WithCrypto & APPLICATION_SMIME)