aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2017-07-28 12:27:00 -0400
committerStefan Monnier2017-07-28 12:27:00 -0400
commitd66dcde46a87ee8a9064db3d9b05da9b17036f5b (patch)
tree88a3069bbd7197989ca0ff36b154cc3c360f317a /test
parentbfb8d33fd18b1d9fd5868204d472cb19f5bcafbe (diff)
downloademacs-d66dcde46a87ee8a9064db3d9b05da9b17036f5b.tar.gz
emacs-d66dcde46a87ee8a9064db3d9b05da9b17036f5b.zip
* lisp/password-cache.el (password-data): Use a hash-table
* lisp/auth-source.el (auth-source-magic): Remove. (auth-source-forget+, auth-source-forget-all-cached): Adjust to new format of password-data. (auth-source-format-cache-entry): Just use a cons. (password-cache-remove, password-cache-add, password-reset) (password-read-from-cache, password-in-cache-p): Adjust accordingly. Fixes: bug#26699
Diffstat (limited to 'test')
-rw-r--r--test/lisp/auth-source-tests.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/auth-source-tests.el b/test/lisp/auth-source-tests.el
index 2634777c7db..9753029f198 100644
--- a/test/lisp/auth-source-tests.el
+++ b/test/lisp/auth-source-tests.el
@@ -215,7 +215,7 @@
215 215
216(ert-deftest auth-source-test-remembrances-of-things-past () 216(ert-deftest auth-source-test-remembrances-of-things-past ()
217 (let ((password-cache t) 217 (let ((password-cache t)
218 (password-data (make-vector 7 0))) 218 (password-data (copy-hash-table password-data)))
219 (auth-source-remember '(:host "wedd") '(4 5 6)) 219 (auth-source-remember '(:host "wedd") '(4 5 6))
220 (should (auth-source-remembered-p '(:host "wedd"))) 220 (should (auth-source-remembered-p '(:host "wedd")))
221 (should-not (auth-source-remembered-p '(:host "xedd"))) 221 (should-not (auth-source-remembered-p '(:host "xedd")))