From 1ad06a5edb4c56aef71fdcba58a751cf33155f0a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 25 Mar 2002 11:34:40 +0000 Subject: [PATCH] Fix S/MIME signature type. Noted by Dan Ohnesorg . --- crypt.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.40.0