2006-04-05 Simon Josefsson <jas@extundo.com>
authorSimon Josefsson <jas@extundo.com>
Wed, 5 Apr 2006 11:15:11 +0000 (11:15 +0000)
committerSimon Josefsson <jas@extundo.com>
Wed, 5 Apr 2006 11:15:11 +0000 (11:15 +0000)
* password.el (password-reset): New function.

lisp/ChangeLog
lisp/password.el

index c0808dc..3838aab 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-05  Simon Josefsson  <jas@extundo.com>
+
+       * password.el (password-reset): New function.
+
 2006-04-05  Daiki Ueno  <ueno@unixuser.org>
 
        * pgg-gpg.el (pgg-gpg-encrypt-region, pgg-gpg-sign-region): Wait
index e494c87..9444262 100644 (file)
@@ -1,6 +1,6 @@
 ;;; password.el --- Read passwords from user, possibly using a password cache.
 
-;; Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
 ;; Author: Simon Josefsson <simon@josefsson.org>
 ;; Created: 2003-12-21
@@ -130,6 +130,11 @@ seconds."
   (set (intern key password-data) password)
   nil)
 
+(defun password-reset ()
+  "Clear the password cache."
+  (interactive)
+  (fillarray password-data 0))
+
 (provide 'password)
 
 ;;; arch-tag: ab160494-16c8-4c68-a4a1-73eebf6686e5