]> git.eshelyaron.com Git - emacs.git/commitdiff
Accept x-pkcs7-signature MIME type as signature.
authorKatsumi Yamaoka <katsumi@flagship2>
Sun, 25 Jul 2010 10:29:49 +0000 (10:29 +0000)
committerKatsumi Yamaoka <katsumi@flagship2>
Sun, 25 Jul 2010 10:29:49 +0000 (10:29 +0000)
2010-07-24  David Engster  <dengste@eml.cc>
 * mml-smime.el (mml-smime-epg-verify): Also accept the older
 x-pkcs7-signature MIME type as signature (RFC 2311, C.1).

lisp/gnus/ChangeLog
lisp/gnus/mml-smime.el

index ce092e36301d673c94f688e451fb33a11a2f5e22..e2af8fcdd16ae5a12aaf0d1d0da348faea5add74 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-24  David Engster  <dengste@eml.cc>
+
+       * mml-smime.el (mml-smime-epg-verify): Also accept the older
+       x-pkcs7-signature MIME type as signature (RFC 2311, C.1).
+
 2010-07-21  Daiki Ueno  <ueno@unixuser.org>
 
        * mml.el (mml-parse-1): Collect "certfile" attributes in "<#secure>"
index a4541ac5dec32decc7a0b77a192987b2765ffa0b..827003f8ec7f7a5c79d0fb729010f79cc4ec763e 100644 (file)
@@ -520,10 +520,14 @@ Content-Disposition: attachment; filename=smime.p7m
                                           ctl 'protocol)
                                          "application/pkcs7-signature")
                                  t)))
-               (null (setq signature (mm-find-part-by-type
-                                      (cdr handle)
-                                      "application/pkcs7-signature"
-                                      nil t))))
+               (null (setq signature (or (mm-find-part-by-type
+                                          (cdr handle)
+                                          "application/pkcs7-signature"
+                                          nil t)
+                                         (mm-find-part-by-type
+                                          (cdr handle)
+                                          "application/x-pkcs7-signature"
+                                          nil t)))))
        (mm-set-handle-multipart-parameter
         mm-security-handle 'gnus-info "Corrupted")
        (throw 'error handle))