(interactive "fFile: ")
(let ((context (epg-make-context)))
(message "Importing %s..." (file-name-nondirectory file))
- (epg-import-keys-from-file context file)
+ (epg-import-keys-from-file context (expand-file-name file))
(apply #'epa-list-keys epa-list-keys-arguments)
(message "Importing %s...done" (file-name-nondirectory file))))
(epg-start context (cons "--export"
(mapcar
(lambda (key)
- (epg-sub-key-id (epg-key-sub-key-list key)))
+ (epg-sub-key-id
+ (car (epg-key-sub-key-list key))))
keys))))
;;;###autoload
`epg-import-keys-from-file' or `epg-import-keys-from-string' instead."
(epg-context-set-result context nil)
(epg-context-set-output-file context (epg-make-temp-file "epg-output"))
- (epg-start context (append (list "--import") (epg-data-file keys)))
+ (epg-start context (list "--import" (epg-data-file keys)))
(if (and (epg-data-string keys)
(eq (process-status (epg-context-process context)) 'run))
(process-send-string (epg-context-process context)
"--delete-key")
(mapcar
(lambda (key)
- (epg-sub-key-id (epg-key-sub-key-list key)))
+ (epg-sub-key-id
+ (car (epg-key-sub-key-list key))))
keys))))
;;;###autoload