Function: epg-start-import-keys
epg-start-import-keys is a byte-compiled function defined in
epg.el.gz.
Signature
(epg-start-import-keys CONTEXT KEYS)
Documentation
Initiate an import keys operation.
KEYS is a data object.
If you use this function, you will need to wait for the completion of
epg-gpg-program by using epg-wait-for-completion and call
epg-reset to clear a temporary output file.
If you are unsure, use synchronous version of this function
epg-import-keys-from-file or epg-import-keys-from-string instead.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-start-import-keys (context keys)
"Initiate an import keys operation.
KEYS is a data object.
If you use this function, you will need to wait for the completion of
`epg-gpg-program' by using `epg-wait-for-completion' and call
`epg-reset' to clear a temporary output file.
If you are unsure, use synchronous version of this function
`epg-import-keys-from-file' or `epg-import-keys-from-string' instead."
(setf (epg-context-operation context) 'import-keys)
(setf (epg-context-result context) nil)
(epg--start context (if (epg-data-file keys)
(list "--import" "--" (epg-data-file keys))
(list "--import")))
(when (epg-data-string keys)
(if (eq (process-status (epg-context-process context)) 'run)
(process-send-string (epg-context-process context)
(epg-data-string keys)))
(if (eq (process-status (epg-context-process context)) 'run)
(process-send-eof (epg-context-process context)))))