aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDaiki Ueno2010-12-05 10:30:58 +0900
committerDaiki Ueno2010-12-05 10:30:58 +0900
commitf9fe1af93762cdb8d4ea326c1ee6b8f46dec6cc9 (patch)
tree6eac633c66a23eb8f5031c1eadcff9d4c0b2a26e /lisp
parent2931c841a3ae5a83bb64c9b6525fa83c9326d55c (diff)
downloademacs-f9fe1af93762cdb8d4ea326c1ee6b8f46dec6cc9.tar.gz
emacs-f9fe1af93762cdb8d4ea326c1ee6b8f46dec6cc9.zip
Trivial fixes for epg.el.
* epg.el (epg-digest-algorithm-alist): Replace "RMD160" with "RIPEMD160" (Bug#7490). Reported by Daniel Kahn Gillmor. (epg-context-set-passphrase-callback): Mention that the callback is not called when used with GnuPG 2.x. modified: lisp/ChangeLog lisp/epg.elk
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/epg.el10
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 747267b674b..8e80a7a6e19 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -33,6 +33,13 @@
33 * files.el (file-relative-name): Handle UNC file names on 33 * files.el (file-relative-name): Handle UNC file names on
34 DOS/Windows. (Bug#4674) 34 DOS/Windows. (Bug#4674)
35 35
362010-12-03 Daiki Ueno <ueno@unixuser.org>
37
38 * epg.el (epg-digest-algorithm-alist): Replace "RMD160" with
39 "RIPEMD160" (Bug#7490). Reported by Daniel Kahn Gillmor.
40 (epg-context-set-passphrase-callback): Mention that the callback
41 is not called when used with GnuPG 2.x.
42
362010-12-02 Glenn Morris <rgm@gnu.org> 432010-12-02 Glenn Morris <rgm@gnu.org>
37 44
38 * ps-print.el (ps-line-lengths-internal, ps-nb-pages): 45 * ps-print.el (ps-line-lengths-internal, ps-nb-pages):
diff --git a/lisp/epg.el b/lisp/epg.el
index 9fde76d5f85..ad172dfbdcd 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -66,7 +66,7 @@
66(defconst epg-digest-algorithm-alist 66(defconst epg-digest-algorithm-alist
67 '((1 . "MD5") 67 '((1 . "MD5")
68 (2 . "SHA1") 68 (2 . "SHA1")
69 (3 . "RMD160") 69 (3 . "RIPEMD160")
70 (8 . "SHA256") 70 (8 . "SHA256")
71 (9 . "SHA384") 71 (9 . "SHA384")
72 (10 . "SHA512") 72 (10 . "SHA512")
@@ -335,7 +335,13 @@ PASSPHRASE-CALLBACK is either a function, or a cons-cell whose
335car is a function and cdr is a callback data. 335car is a function and cdr is a callback data.
336 336
337The function gets three arguments: the context, the key-id in 337The function gets three arguments: the context, the key-id in
338question, and the callback data (if any)." 338question, and the callback data (if any).
339
340The callback may not be called if you use GnuPG 2.x, which relies
341on the external program called `gpg-agent' for passphrase query.
342If you really want to intercept passphrase query, consider
343installing GnuPG 1.x _along with_ GnuPG 2.x, which does passphrase
344query by itself and Emacs can intercept them."
339 (unless (eq (car-safe context) 'epg-context) 345 (unless (eq (car-safe context) 'epg-context)
340 (signal 'wrong-type-argument (list 'epg-context-p context))) 346 (signal 'wrong-type-argument (list 'epg-context-p context)))
341 (aset (cdr context) 7 (if (consp passphrase-callback) 347 (aset (cdr context) 7 (if (consp passphrase-callback)