Commit a4e7e8ae authored by Daiki Ueno's avatar Daiki Ueno Committed by Katsumi Yamaoka
Browse files

lisp/gnus/mml2015.el (mml2015-epg-sign): Make sure to insert newline after the...

lisp/gnus/mml2015.el (mml2015-epg-sign): Make sure to insert newline after the signed data to conform the standard (Bug#14232)
parent ca5995ec
2013-05-22 Daiki Ueno <ueno@gnu.org>
* mml2015.el (mml2015-epg-sign): Make sure to insert newline after the
signed data to conform the standard. (Bug#14232)
2013-05-20 Adam Sjøgren <asjo@koldfront.dk>
 
* gnus-spec.el (gnus-parse-complex-format): Use unicode escape for left
......
......@@ -1085,6 +1085,10 @@ If no one is selected, default secret key is used. "
(epg-context-set-passphrase-callback
context
#'mml2015-epg-passphrase-callback))
;; Signed data must end with a newline (RFC 3156, 5).
(goto-char (point-max))
(unless (bolp)
(insert "\n"))
(condition-case error
(setq signature (epg-sign-string context (buffer-string) t)
mml2015-epg-secret-key-id-list nil)
......
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