Changes committed gnus/lisp (mml2015.el)

"Daiki Ueno" <[email protected]>
Newsgroups gmane.emacs.gnus.commits
Message-ID <[email protected]>
Modified: mml2015.el

* mml2015.el (mml2015-epg-passphrase-callback): Type cast KEY-ID to a
string for caching if it is 'PIN.


Index: mml2015.el
diff -u gnus/lisp/mml2015.el:7.52 gnus/lisp/mml2015.el:7.53
--- mml2015.el:7.52	Sun Mar  2 18:43:01 2008
+++ mml2015.el	Mon Mar 10 09:59:56 2008
@@ -999,7 +999,11 @@
 (defun mml2015-epg-passphrase-callback (context key-id ignore)
   (if (eq key-id 'SYM)
       (epg-passphrase-callback-function context key-id nil)
-    (let* (entry
+    (let* ((password-cache-key-id
+	    (if (eq key-id 'PIN)
+		"PIN"
+	       key-id))
+	   entry
 	   (passphrase
 	    (password-read
 	     (if (eq key-id 'PIN)
@@ -1007,14 +1011,12 @@
 	       (if (setq entry (assoc key-id epg-user-id-alist))
 		   (format "Passphrase for %s %s: " key-id (cdr entry))
 		 (format "Passphrase for %s: " key-id)))
-	     (if (eq key-id 'PIN)
-		 "PIN"
-	       key-id))))
+	     password-cache-key-id)))
       (when passphrase
 	(let ((password-cache-expiry mml2015-passphrase-cache-expiry))
-	  (password-cache-add key-id passphrase))
+	  (password-cache-add password-cache-key-id passphrase))
 	(setq mml2015-epg-secret-key-id-list
-	      (cons key-id mml2015-epg-secret-key-id-list))
+	      (cons password-cache-key-id mml2015-epg-secret-key-id-list))
 	(copy-sequence passphrase)))))
 
 (defun mml2015-epg-find-usable-key (keys usage)
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.