2011-09-20 Julien Danjou <julien@danjou.info>
+ * password-cache.el (password-cache-remove): Remove entries even if the
+ value is nil, so that password with a nil value (negative caching) is
+ possible to invalidate.
+
* auth-source.el (auth-source-format-cache-entry): New function.
2011-09-20 Katsumi Yamaoka <yamaoka@jpl.org>
from the cache. This may be useful when it has been detected
that a password is invalid, so that `password-read' query the
user again."
- (let ((password (symbol-value (intern-soft key password-data))))
- (when password
- (when (stringp password)
- (if (fboundp 'clear-string)
- (clear-string password)
- (fillarray password ?_)))
- (unintern key password-data))))
+ (let ((sym (intern-soft key password-data)))
+ (when sym
+ (let ((password (symbol-value sym)))
+ (when (stringp password)
+ (if (fboundp 'clear-string)
+ (clear-string password)
+ (fillarray password ?_)))
+ (unintern key password-data)))))
(defun password-cache-add (key password)
"Add password to cache.