From: Thomas Roessler Date: Mon, 25 Mar 2002 11:34:40 +0000 (+0000) Subject: Fix S/MIME signature type. Noted by Dan Ohnesorg . X-Git-Tag: mutt-1-5-1-rel~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ad06a5edb4c56aef71fdcba58a751cf33155f0a;p=mutt Fix S/MIME signature type. Noted by Dan Ohnesorg . --- diff --git a/crypt.c b/crypt.c index ce5467f1..244ba4ca 100644 --- a/crypt.c +++ b/crypt.c @@ -306,22 +306,24 @@ int mutt_is_multipart_signed (BODY *b) char *p; if (!b || !(b->type == TYPEMULTIPART) || - !b->subtype || mutt_strcasecmp(b->subtype, "signed")) + !b->subtype || ascii_strcasecmp(b->subtype, "signed")) return 0; if (!(p = mutt_get_parameter("protocol", b->parameter))) return 0; - if (!(mutt_strcasecmp (p, "multipart/mixed"))) + if (!(ascii_strcasecmp (p, "multipart/mixed"))) return SIGN; #ifdef HAVE_PGP - if (!(mutt_strcasecmp (p, "application/pgp-signature"))) + if (!(ascii_strcasecmp (p, "application/pgp-signature"))) return PGPSIGN; #endif #ifdef HAVE_SMIME - if (!(mutt_strcasecmp(p, "application/x-pkcs7-signature"))) + if (!(ascii_strcasecmp (p, "application/x-pkcs7-signature"))) + return SMIMESIGN; + if (!(ascii_strcasecmp (p, "application/pkcs7-signature"))) return SMIMESIGN; #endif