]> granicus.if.org Git - mutt/commitdiff
Fix verification bug when messages are S/MIME signed & encrypted.
authorChristoph Ludwig <cludwig@cdc.informatik.tu-darmstadt.de>
Thu, 4 Sep 2003 14:59:57 +0000 (14:59 +0000)
committerChristoph Ludwig <cludwig@cdc.informatik.tu-darmstadt.de>
Thu, 4 Sep 2003 14:59:57 +0000 (14:59 +0000)
smime.c

diff --git a/smime.c b/smime.c
index e342fb0d55e20481bbfa0d9e656226b014235732..51237edf2c3883f4b586ae69812a17f051b23471 100644 (file)
--- a/smime.c
+++ b/smime.c
@@ -1160,7 +1160,7 @@ int smime_verify_sender(HEADER *h)
   if(h->security & ENCRYPT)
     mutt_copy_message (fpout, Context, h,
                       M_CM_DECODE_CRYPT & M_CM_DECODE_SMIME,
-                      CH_WEED|CH_NONEWLINE);
+                      CH_MIME|CH_WEED|CH_NONEWLINE);
   else
     mutt_copy_message (fpout, Context, h, 0, 0);
 
@@ -1323,7 +1323,7 @@ BODY *smime_build_smime_entity (BODY *a, char *certlist)
   rewind (fpout);
   empty = (fgetc (fpout) == EOF);
   fclose (fpout);
-
   fflush (smimeerr);
   rewind (smimeerr);
   while (fgets (buf, sizeof (buf) - 1, smimeerr) != NULL)