Function: epg-required-version-p

epg-required-version-p is a byte-compiled function defined in epg-config.el.gz.

Signature

(epg-required-version-p PROTOCOL REQUIRED-VERSION)

Documentation

Verify a sufficient version of GnuPG for specific protocol.

PROTOCOL is symbol, either OpenPGP or CMS. REQUIRED-VERSION is a string containing the required version number. Return non-nil if that version or higher is installed.

Source Code

;; Defined in /usr/src/emacs/lisp/epg-config.el.gz
(defun epg-required-version-p (protocol required-version)
  "Verify a sufficient version of GnuPG for specific protocol.
PROTOCOL is symbol, either `OpenPGP' or `CMS'.  REQUIRED-VERSION
is a string containing the required version number.  Return
non-nil if that version or higher is installed."
  (let ((version (cdr (assq 'version (epg-find-configuration protocol)))))
    (and (stringp version)
         (version<= required-version version))))