[gnus git] branch master updated: m0-7-23-g28b637b =1= mml2015: Make sure to insert newline after the signed data

Daiki Ueno <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  28b637bda13bd93678d2ea85f8f7fcbe7a49d862 (commit)
      from  e5733c5fe8b0e66155eb7016d20f7b2e290b7df8 (commit)


- Log -----------------------------------------------------------------
commit 28b637bda13bd93678d2ea85f8f7fcbe7a49d862
Author: Daiki Ueno <[email protected]>
Date:   Wed May 22 16:18:05 2013 +0900

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

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4212f43..8456311 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-22  Daiki Ueno  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* gnus-spec.el (gnus-parse-complex-format): Use unicode escape for left
diff --git a/lisp/mml2015.el b/lisp/mml2015.el
index c3905b8..5d122df 100644
--- a/lisp/mml2015.el
+++ b/lisp/mml2015.el
@@ -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)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/mml2015.el |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.