Function: epg-export-keys-to-file
epg-export-keys-to-file is a byte-compiled function defined in
epg.el.gz.
Signature
(epg-export-keys-to-file CONTEXT KEYS FILE)
Documentation
Extract public KEYS.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-export-keys-to-file (context keys file)
"Extract public KEYS."
(unwind-protect
(progn
(setf (epg-context-output-file context)
(or file (make-temp-file "epg-output")))
(epg-start-export-keys context keys)
(epg-wait-for-completion context)
(let ((errors (epg-context-result-for context 'error)))
(if errors
(signal 'epg-error
(list "Export keys failed"
(epg-errors-to-string errors)))))
(unless file
(epg-read-output context)))
(unless file
(epg-delete-output-file context))
(epg-reset context)))