Commit 8f24b587 authored by Daiki Ueno's avatar Daiki Ueno

mml: Signal error on invalid <#secure> tag

* mml.el (mml-parse-1): Error out if unknown mode is specified in
<#secure> tag (bug#18513).
parent 2d7ade06
2014-09-29 Daiki Ueno <ueno@gnu.org>
* mml.el (mml-parse-1): Error out if unknown mode is specified in
<#secure> tag (bug#18513).
2014-09-11 Paul Eggert <eggert@cs.ucla.edu>
* gnus-cloud.el (gnus-cloud-parse-version-1): Fix misspelling
......
......@@ -257,7 +257,9 @@ part. This is for the internal use, you should never modify the value.")
((string= mode "encrypt")
(setq tags (list "encrypt" method)))
((string= mode "signencrypt")
(setq tags (list "sign" method "encrypt" method))))
(setq tags (list "sign" method "encrypt" method)))
(t
(error "Unknown secure mode %s" mode)))
(eval `(mml-insert-tag ,secure-mode
,@tags
,(if keyfile "keyfile")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment