(epa-file-select-keys): New command.
[elisp/epg.git] / epa-file.el
index 47b17f5..9828b65 100644 (file)
@@ -264,6 +264,16 @@ If no one is selected, symmetric encryption will be performed.  "
           epa-file-inhibit-auto-save)
       (auto-save-mode 0)))
 
+(defun epa-file-select-keys ()
+  "Select recipients for encryption."
+  (interactive)
+  (make-local-variable 'epa-file-encrypt-to)
+  (setq epa-file-encrypt-to
+       (epa-select-keys
+        context
+        "Select recipents for encryption.
+If no one is selected, symmetric encryption will be performed.  ")))
+
 ;;;###autoload
 (defun epa-file-enable ()
   (interactive)