Function: url-digest-cached-key

url-digest-cached-key is a byte-compiled function defined in url-auth.el.gz.

Signature

(url-digest-cached-key URL REALM)

Documentation

Find best match for URL and REALM from url-digest-auth-storage.

The return value is a list consisting of a realm (or a directory) a user name, and hashed authentication tokens HA1 and HA2. Modifying the contents of the returned list will modify the cache variable url-digest-auth-storage itself.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-auth.el.gz
(defun url-digest-cached-key (url realm)
  "Find best match for URL and REALM from `url-digest-auth-storage'.
The return value is a list consisting of a realm (or a directory)
a user name, and hashed authentication tokens HA1 and HA2.
Modifying the contents of the returned list will modify the cache
variable `url-digest-auth-storage' itself."
  (url-digest-auth-directory-id-assoc
   (url-digest-auth-directory-id url realm)
   (cdr (assoc (url-digest-auth-server-id url) url-digest-auth-storage))))