[gnus git] branch master updated: m0-7-40-g2b876b2 =1= Correct PKCS7 regexps to match messages with 0x0a bytes.
Daiki Ueno <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 2b876b2a5b82dc0834f292bc6bbdc6514617c792 (commit)
from 378aea34bb2b6ea37439350a3d432fd510b8e223 (commit)
- Log -----------------------------------------------------------------
commit 2b876b2a5b82dc0834f292bc6bbdc6514617c792
Author: Roy Hashimoto <[email protected]>
Date: Sun Jun 9 17:37:15 2013 +0000
Correct PKCS7 regexps to match messages with 0x0a bytes.
Signed-off-by: Roy Hashimoto <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ec2e7db..02a13e1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-10 Roy Hashimoto <[email protected]> (tiny change)
+
+ * mm-view.el (mm-pkcs7-signed-magic): Allow newline in the regexp and
+ make it easier to read.
+ (mm-pkcs7-enveloped-magic): Ditto.
+
2013-06-06 Teodor Zlatanov <[email protected]>
* gnus-ems.el (gnus-image-type-available-p): Test `display-images-p'
diff --git a/lisp/mm-view.el b/lisp/mm-view.el
index ac6170a..b1cba27 100644
--- a/lisp/mm-view.el
+++ b/lisp/mm-view.el
@@ -660,14 +660,26 @@ If MODE is not set, try to find mode automatically."
;; id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2)
;; us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 }
(defvar mm-pkcs7-signed-magic
- "\x30\x5c\x28\x80\x5c\x7c\x81\x2e\x5c\x7c\x82\x2e\x2e\x5c\x7c\x83\x2e\x2e\
-\x2e\x5c\x29\x06\x09\x5c\x2a\x86\x48\x86\xf7\x0d\x01\x07\x02")
+ (concat
+ "0"
+ "\\(\\(\x80\\)"
+ "\\|\\(\x81\\(.\\|\n\\)\\{1\\}\\)"
+ "\\|\\(\x82\\(.\\|\n\\)\\{2\\}\\)"
+ "\\|\\(\x83\\(.\\|\n\\)\\{3\\}\\)"
+ "\\)"
+ "\x06\x09\\*\x86H\x86\xf7\x0d\x01\x07\x02"))
;; id-envelopedData OBJECT IDENTIFIER ::= { iso(1) member-body(2)
;; us(840) rsadsi(113549) pkcs(1) pkcs7(7) 3 }
(defvar mm-pkcs7-enveloped-magic
- "\x30\x5c\x28\x80\x5c\x7c\x81\x2e\x5c\x7c\x82\x2e\x2e\x5c\x7c\x83\x2e\x2e\
-\x2e\x5c\x29\x06\x09\x5c\x2a\x86\x48\x86\xf7\x0d\x01\x07\x03")
+ (concat
+ "0"
+ "\\(\\(\x80\\)"
+ "\\|\\(\x81\\(.\\|\n\\)\\{1\\}\\)"
+ "\\|\\(\x82\\(.\\|\n\\)\\{2\\}\\)"
+ "\\|\\(\x83\\(.\\|\n\\)\\{3\\}\\)"
+ "\\)"
+ "\x06\x09\\*\x86H\x86\xf7\x0d\x01\x07\x03"))
(defun mm-view-pkcs7-get-type (handle)
(mm-with-unibyte-buffer
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 6 ++++++
lisp/mm-view.el | 20 ++++++++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project