Function: package-check-signature

package-check-signature is a byte-compiled function defined in package.el.gz.

Signature

(package-check-signature)

Documentation

Check whether we have a usable OpenPGP configuration.

If so, and variable package-check-signature(var)/package-check-signature(fun) is allow-unsigned, return allow-unsigned, otherwise return the value of variable package-check-signature(var)/package-check-signature(fun).

View in manual

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-check-signature ()
  "Check whether we have a usable OpenPGP configuration.
If so, and variable `package-check-signature' is
`allow-unsigned', return `allow-unsigned', otherwise return the
value of variable `package-check-signature'."
  (if (eq package-check-signature 'allow-unsigned)
      (progn
        (require 'epg-config)
        (and (epg-find-configuration 'OpenPGP)
             'allow-unsigned))
    package-check-signature))