Add caching through password-cache.
authorTed Zlatanov <tzz@lifelogs.com>
Wed, 9 Feb 2011 21:32:55 +0000 (15:32 -0600)
committerTed Zlatanov <tzz@lifelogs.com>
Wed, 9 Feb 2011 21:32:55 +0000 (15:32 -0600)
commit90e4c6ac159c751bb54c5d2053d5f3aa71b78640
tree6f440b3009065e3df780f7c3f86c6ad945bb33b9
parent8894cb17aa25f5de7672f93fd52f4731f42ed9e0
Add caching through password-cache.

* password-cache.el (password-cache-remove): Accept secrets that are
not strings.

* auth-source.el: Require `password-cache'.
(auth-source-hide-passwords, auth-source-cache): Remove and mark
obsolete.
(auth-source-magic): Marker for `password-cache' keys.
(auth-source-do-cache): Update docstring.
(auth-source-search): Use and check cache.
(auth-source-forget-all-cached, auth-source-remember)
(auth-source-recall, auth-source-forget, auth-source-forget+)
(auth-source-specmatchp): Caching support functions.
(auth-source-forget-user-or-password, auth-source-forget-all-cached):
Remove and obsolete.
(auth-source-user-or-password): Remove caching to further discourage
using it.  Always hide passwords.

* nnimap.el: Autoload `auth-source-forget+'.
(nnimap-open-connection-1): Use it if the connection fails.
lisp/ChangeLog
lisp/auth-source.el
lisp/nnimap.el
lisp/password-cache.el