Don't throw an error when any of encryption subkeys are expired.
authorDaiki Ueno <ueno@unixuser.org>
Sat, 29 Jan 2011 11:05:35 +0000 (20:05 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Sat, 29 Jan 2011 11:05:35 +0000 (20:05 +0900)
* epg.el (epg--status-KEYEXPIRED, epg--status-KEYREVOKED): Don't
presume KEYEXPIRED and KEYREVOKED to be a fatal error status
(Bug#7931).

lisp/ChangeLog
lisp/epg.el

index 1b833ab..9ca1dd5 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-29  Daiki Ueno  <ueno@unixuser.org>
+
+       * epg.el (epg--status-KEYEXPIRED, epg--status-KEYREVOKED): Don't
+       presume KEYEXPIRED and KEYREVOKED to be a fatal error status
+       (Bug#7931).
+
 2011-01-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/compile.el: Avoid an N² behavior in grep.
index e0eb14a..c096ec6 100644 (file)
@@ -1561,14 +1561,14 @@ This function is for internal use only."
 
 (defun epg--status-KEYEXPIRED (context string)
   (epg-context-set-result-for
-   context 'error
+   context 'key
    (cons (list 'key-expired (cons 'expiration-time
                                  (epg--time-from-seconds string)))
         (epg-context-result-for context 'error))))
 
 (defun epg--status-KEYREVOKED (context string)
   (epg-context-set-result-for
-   context 'error
+   context 'key
    (cons '(key-revoked)
         (epg-context-result-for context 'error))))