* epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
[elisp/epg.git] / epg.el
diff --git a/epg.el b/epg.el
index 147eda5..3ba189f 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -1174,8 +1174,8 @@ If you are unsure, use synchronous version of this function
                     (if (epg-data-file plain)
                         (list (epg-data-file plain)))))
   (if sign
-      (epg-wait-for-status context '("BEGIN_SIGNING")))
-  (epg-wait-for-status context '("BEGIN_ENCRYPTION"))
+      (epg-wait-for-status context '("BEGIN_SIGNING"))
+    (epg-wait-for-status context '("BEGIN_ENCRYPTION")))
   (if (and (epg-data-string plain)
           (eq (process-status (epg-context-process context)) 'run))
       (process-send-string (epg-context-process context)