(smime-ask-passphrase): Use read-passwd rather than
authorJesper Harder <harder@ifa.au.dk>
Fri, 25 Jul 2003 00:53:09 +0000 (00:53 +0000)
committerJesper Harder <harder@ifa.au.dk>
Fri, 25 Jul 2003 00:53:09 +0000 (00:53 +0000)
comint-read-noecho.  The former is more secure.

lisp/ChangeLog
lisp/smime.el

index 67a1a86..cab38a0 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-25  Jesper Harder  <harder@ifa.au.dk>
+
+       * smime.el (smime-ask-passphrase): Use read-passwd rather than
+       comint-read-noecho.  The former is more secure.
+
 2003-07-24  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-registry.el (gnus-registry-cache-whitespace): make "adding
index 7dc6b52..b14e24a 100644 (file)
 ;;; Code:
 
 (require 'dig)
-(require 'comint)
 (eval-when-compile (require 'cl))
 
 (defgroup smime nil
@@ -211,8 +210,8 @@ If nil, use system defaults."
 (defun smime-ask-passphrase ()
   "Asks the passphrase to unlock the secret key."
   (let ((passphrase
-        (comint-read-noecho
-         "Passphrase for secret key (RET for no passphrase): " t)))
+        (read-passwd
+         "Passphrase for secret key (RET for no passphrase): ")))
     (if (string= passphrase "")
        nil
       passphrase)))