Function: auth-source-pass--generate-entry-suffixes
auth-source-pass--generate-entry-suffixes is a byte-compiled function
defined in auth-source-pass.el.gz.
Signature
(auth-source-pass--generate-entry-suffixes HOSTNAME USER PORT)
Documentation
Return a list of possible entry path suffixes in the password-store.
Based on the supported filename patterns for HOSTNAME, USER, & PORT, return a list of possible suffixes for matching entries in the password-store.
PORT may be a list of ports.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
(defun auth-source-pass--generate-entry-suffixes (hostname user port)
"Return a list of possible entry path suffixes in the password-store.
Based on the supported filename patterns for HOSTNAME, USER, &
PORT, return a list of possible suffixes for matching entries in
the password-store.
PORT may be a list of ports."
(let ((domains (auth-source-pass--domains (split-string hostname "\\."))))
(seq-mapcat (lambda (domain)
(seq-mapcat
(lambda (p)
(auth-source-pass--name-port-user-suffixes domain user p))
(if (consp port) port (list port))))
domains)))