aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno2011-01-29 20:05:35 +0900
committerDaiki Ueno2011-01-29 20:05:35 +0900
commit8907f7b9368b0eb9d2764248edacd08cda7dc3af (patch)
tree7e33d0e8e74710774acce22cc25c6b5dda3a22e4
parent481ae0855fbeadb5817ea3ffa7d5dbf3723000ac (diff)
downloademacs-8907f7b9368b0eb9d2764248edacd08cda7dc3af.tar.gz
emacs-8907f7b9368b0eb9d2764248edacd08cda7dc3af.zip
Don't throw an error when any of encryption subkeys are expired.
* epg.el (epg--status-KEYEXPIRED, epg--status-KEYREVOKED): Don't presume KEYEXPIRED and KEYREVOKED to be a fatal error status (Bug#7931).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/epg.el4
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1b833abe3cf..9ca1dd55250 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-01-29 Daiki Ueno <ueno@unixuser.org>
2
3 * epg.el (epg--status-KEYEXPIRED, epg--status-KEYREVOKED): Don't
4 presume KEYEXPIRED and KEYREVOKED to be a fatal error status
5 (Bug#7931).
6
12011-01-29 Stefan Monnier <monnier@iro.umontreal.ca> 72011-01-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * progmodes/compile.el: Avoid an N² behavior in grep. 9 * progmodes/compile.el: Avoid an N² behavior in grep.
diff --git a/lisp/epg.el b/lisp/epg.el
index e0eb14a8f3d..c096ec6df98 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1561,14 +1561,14 @@ This function is for internal use only."
1561 1561
1562(defun epg--status-KEYEXPIRED (context string) 1562(defun epg--status-KEYEXPIRED (context string)
1563 (epg-context-set-result-for 1563 (epg-context-set-result-for
1564 context 'error 1564 context 'key
1565 (cons (list 'key-expired (cons 'expiration-time 1565 (cons (list 'key-expired (cons 'expiration-time
1566 (epg--time-from-seconds string))) 1566 (epg--time-from-seconds string)))
1567 (epg-context-result-for context 'error)))) 1567 (epg-context-result-for context 'error))))
1568 1568
1569(defun epg--status-KEYREVOKED (context string) 1569(defun epg--status-KEYREVOKED (context string)
1570 (epg-context-set-result-for 1570 (epg-context-set-result-for
1571 context 'error 1571 context 'key
1572 (cons '(key-revoked) 1572 (cons '(key-revoked)
1573 (epg-context-result-for context 'error)))) 1573 (epg-context-result-for context 'error))))
1574 1574