diff options
| author | Katsumi Yamaoka | 2010-07-25 10:29:49 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-07-25 10:29:49 +0000 |
| commit | 86fb10614e2267032e42eb09a20c3c4be179b2de (patch) | |
| tree | 01c3302a13d9de69654cd474e77cef5181dcd514 | |
| parent | f8e0614ccbf0baa82f441de53fcf651e6610a963 (diff) | |
| download | emacs-86fb10614e2267032e42eb09a20c3c4be179b2de.tar.gz emacs-86fb10614e2267032e42eb09a20c3c4be179b2de.zip | |
Accept x-pkcs7-signature MIME type as signature.
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).
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mml-smime.el | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ce092e36301..e2af8fcdd16 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-07-24 David Engster <dengste@eml.cc> | ||
| 2 | |||
| 3 | * mml-smime.el (mml-smime-epg-verify): Also accept the older | ||
| 4 | x-pkcs7-signature MIME type as signature (RFC 2311, C.1). | ||
| 5 | |||
| 1 | 2010-07-21 Daiki Ueno <ueno@unixuser.org> | 6 | 2010-07-21 Daiki Ueno <ueno@unixuser.org> |
| 2 | 7 | ||
| 3 | * mml.el (mml-parse-1): Collect "certfile" attributes in "<#secure>" | 8 | * mml.el (mml-parse-1): Collect "certfile" attributes in "<#secure>" |
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index a4541ac5dec..827003f8ec7 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -520,10 +520,14 @@ Content-Disposition: attachment; filename=smime.p7m | |||
| 520 | ctl 'protocol) | 520 | ctl 'protocol) |
| 521 | "application/pkcs7-signature") | 521 | "application/pkcs7-signature") |
| 522 | t))) | 522 | t))) |
| 523 | (null (setq signature (mm-find-part-by-type | 523 | (null (setq signature (or (mm-find-part-by-type |
| 524 | (cdr handle) | 524 | (cdr handle) |
| 525 | "application/pkcs7-signature" | 525 | "application/pkcs7-signature" |
| 526 | nil t)))) | 526 | nil t) |
| 527 | (mm-find-part-by-type | ||
| 528 | (cdr handle) | ||
| 529 | "application/x-pkcs7-signature" | ||
| 530 | nil t))))) | ||
| 527 | (mm-set-handle-multipart-parameter | 531 | (mm-set-handle-multipart-parameter |
| 528 | mm-security-handle 'gnus-info "Corrupted") | 532 | mm-security-handle 'gnus-info "Corrupted") |
| 529 | (throw 'error handle)) | 533 | (throw 'error handle)) |