(pgg-gpg-possibly-cache-passphrase): Fix PIN caching,
authorSimon Josefsson <jas@extundo.com>
Mon, 9 May 2005 19:18:02 +0000 (19:18 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 9 May 2005 19:18:02 +0000 (19:18 +0000)
tiny patch from "Georg C. F. Greve" <greve@gnu.org>.

lisp/ChangeLog
lisp/pgg-gpg.el

index 197aec3..d06c3a6 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-09  Simon Josefsson  <jas@extundo.com>
+
+       * pgg-gpg.el (pgg-gpg-possibly-cache-passphrase): Fix PIN caching,
+       tiny patch from "Georg C. F. Greve" <greve@gnu.org>.
+
 2005-05-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.el (gnus-version-number): Bump version.
index 2b3e521..432f04f 100644 (file)
   (if (and pgg-cache-passphrase
           (progn
             (goto-char (point-min))
-            (re-search-forward "^\\[GNUPG:] GOOD_PASSPHRASE\\>" nil t)))
+            (re-search-forward "^\\[GNUPG:] \\(GOOD_PASSPHRASE\\>\\)\\|\\(SIG_CREATED\\)" nil t)))
       (pgg-add-passphrase-cache
        (or key
           (progn
             (goto-char (point-min))
             (if (re-search-forward
-                 "^\\[GNUPG:] NEED_PASSPHRASE \\w+ ?\\w*" nil t)
+                 "^\\[GNUPG:] NEED_PASSPHRASE\\(_PIN\\)? \\w+ ?\\w*" nil t)
                 (substring (match-string 0) -8))))
        passphrase)))