From: Christoph Ludwig Date: Thu, 4 Sep 2003 14:59:57 +0000 (+0000) Subject: Fix verification bug when messages are S/MIME signed & encrypted. X-Git-Tag: pre-type-punning-patch~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60f421fc3f4e5f1bf94e90999f0c2219c441ca45;p=mutt Fix verification bug when messages are S/MIME signed & encrypted. --- diff --git a/smime.c b/smime.c index e342fb0d..51237edf 100644 --- 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)