]> git.eshelyaron.com Git - emacs.git/commit
lisp/auth-source-pass.el: Support multiple hosts in search spec
authorIku Iwasa <iku.iwasa@gmail.com>
Sun, 27 Jun 2021 15:36:00 +0000 (17:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Jul 2021 10:53:35 +0000 (12:53 +0200)
commitb09ee1406205e8b6298411b9a18c1cd26e201689
tree34e7f4f5930c6bcac08800fb2c729b7287153e32
parentbb455d0daad89f5d895232f66c26a7fee6bb9bc8
lisp/auth-source-pass.el: Support multiple hosts in search spec

* lisp/auth-source-pass.el (auth-source-pass-search): Accept a list of
strings for argument HOST.
(auth-source-pass--build-result): Rename argument HOST to HOSTS. Also
return value "host" from entry if it exists.
(auth-source-pass--find-match): Rename argument HOST to HOSTS. Iterate
over each host in HOSTS.
* test/lisp/auth-source-pass-tests.el: Add corresponding tests
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el