Function: auth-source-pass--find-match
auth-source-pass--find-match is a byte-compiled function defined in
auth-source-pass.el.gz.
Signature
(auth-source-pass--find-match HOSTS USER PORT)
Documentation
Return password-store entry data matching HOSTS, USER and PORT.
Disambiguate between user provided inside HOSTS (e.g., user@server.com) and inside USER by giving priority to USER. Same for PORT. HOSTS can be a string or a list of strings.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
(defun auth-source-pass--find-match (hosts user port)
"Return password-store entry data matching HOSTS, USER and PORT.
Disambiguate between user provided inside HOSTS (e.g., user@server.com) and
inside USER by giving priority to USER. Same for PORT.
HOSTS can be a string or a list of strings."
(seq-some (lambda (host)
(let ((entry (apply #'auth-source-pass--find-match-unambiguous
(auth-source-pass--disambiguate host user port))))
(if (or (null entry) (assoc "host" entry))
entry
(cons (cons "host" host) entry))))
(if (listp hosts)
hosts
(list hosts))))