Function: auth-source-pass-search
auth-source-pass-search is a byte-compiled function defined in
auth-source-pass.el.gz.
Signature
(auth-source-pass-search &rest SPEC &key BACKEND TYPE HOST USER PORT REQUIRE MAX &allow-other-keys)
Documentation
Given some search query, return matching credentials.
See auth-source-search for details on the parameters SPEC, BACKEND, TYPE,
HOST, USER, PORT, REQUIRE, and MAX.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
(cl-defun auth-source-pass-search (&rest spec
&key backend type host user port
require max
&allow-other-keys)
"Given some search query, return matching credentials.
See `auth-source-search' for details on the parameters SPEC, BACKEND, TYPE,
HOST, USER, PORT, REQUIRE, and MAX."
(cl-assert (or (null type) (eq type (oref backend type)))
t "Invalid password-store search: %s %s")
(cond ((eq host t)
(warn "auth-source-pass does not handle host wildcards.")
nil)
((null host)
;; Do not build a result, as none will match when HOST is nil
nil)
(auth-source-pass-extra-query-keywords
(auth-source-pass--build-result-many host port user require max))
(t
(when-let* ((result (auth-source-pass--build-result host port user)))
(list result)))))