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:
parent
ca5995ecca
commit
a4e7e8ae13
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue