]> granicus.if.org Git - neomutt/commitdiff
Fix S/MIME signature type. Noted by Dan Ohnesorg <Dan@ohnesorg.cz>.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 25 Mar 2002 11:34:40 +0000 (11:34 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 25 Mar 2002 11:34:40 +0000 (11:34 +0000)
crypt.c

diff --git a/crypt.c b/crypt.c
index ce5467f1e8f9eb89d3dcb09b5902c8508f3c1842..244ba4ca02a2b9f83cd811f57b14d19b13c543b3 100644 (file)
--- 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