aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/password-cache.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/password-cache.el')
-rw-r--r--lisp/password-cache.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/lisp/password-cache.el b/lisp/password-cache.el
index f5007579a8a..2443f374a84 100644
--- a/lisp/password-cache.el
+++ b/lisp/password-cache.el
@@ -94,22 +94,6 @@ The variable `password-cache' control whether the cache is used."
94 (or (password-read-from-cache key) 94 (or (password-read-from-cache key)
95 (read-passwd prompt))) 95 (read-passwd prompt)))
96 96
97(defun password-read-and-add (prompt &optional key)
98 "Read password, for use with KEY, from user, or from cache if wanted.
99Then store the password in the cache. Uses `password-read' and
100`password-cache-add'. Custom variables `password-cache' and
101`password-cache-expiry' regulate cache behavior.
102
103Warning: the password is cached without checking that it is
104correct. It is better to check the password before caching. If
105you must use this function, take care to check passwords and
106remove incorrect ones from the cache."
107 (declare (obsolete password-read "23.1"))
108 (let ((password (password-read prompt key)))
109 (when (and password key)
110 (password-cache-add key password))
111 password))
112
113(defun password-cache-remove (key) 97(defun password-cache-remove (key)
114 "Remove password indexed by KEY from password cache. 98 "Remove password indexed by KEY from password cache.
115This is typically run by a timer setup from `password-cache-add', 99This is typically run by a timer setup from `password-cache-add',