1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-16 21:20:53 -08:00

lisp/gnus/mml2015.el (mml2015-epg-sign): Make sure to insert newline after the signed data to conform the standard (Bug#14232)

This commit is contained in:
Daiki Ueno 2013-05-22 13:18:40 +00:00 committed by Katsumi Yamaoka
parent ca5995ecca
commit a4e7e8ae13
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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)