Function: epg-config--make-gpgsm-configuration

epg-config--make-gpgsm-configuration is a byte-compiled function defined in epg-config.el.gz.

Signature

(epg-config--make-gpgsm-configuration PROGRAM)

Source Code

;; Defined in /usr/src/emacs/lisp/epg-config.el.gz
;; Create an `epg-configuration' object for `gpgsm', using PROGRAM.
(defun epg-config--make-gpgsm-configuration (program)
  (with-temp-buffer
    (call-process program nil (list t nil) nil "--version")
    (goto-char (point-min))
    (when (looking-at "\\S-+ (")
      (goto-char (match-end 0))
      (backward-char)
      (forward-sexp)
      (skip-syntax-forward "-" (point-at-eol))
      (list (cons 'program program)
            (cons 'version (buffer-substring (point) (point-at-eol)))))))