Function: auth-source-read-passwd-search

auth-source-read-passwd-search is a byte-compiled function defined in auth-source.el.gz.

Signature

(auth-source-read-passwd-search &rest SPEC &key BACKEND CREATE DELETE &allow-other-keys)

Documentation

Search in password cache; spec is like auth-source.

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
;;; Backend specific parsing: just read the password

(cl-defun auth-source-read-passwd-search (&rest spec
                                      &key backend create delete
                                      &allow-other-keys)
  "Search in password cache; spec is like `auth-source'."

  ;; TODO
  (cl-assert
   (not delete) nil
   "The `read-passwd' auth-source backend doesn't support deletion yet")

  (let ((found (auth-source-recall (auth-source-search-spec spec))))
    (cond
     (found (list found))
     (create (apply (slot-value backend 'create-function) spec)))))