Function: tramp-read-passwd-without-cache

tramp-read-passwd-without-cache is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-read-passwd-without-cache PROC &optional PROMPT)

Documentation

Read a password from user (compat function).

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-read-passwd-without-cache (proc &optional prompt)
  "Read a password from user (compat function)."
  (declare (tramp-suppress-trace t))
  ;; We suspend the timers while reading the password.
  (let (tramp-dont-suspend-timers)
    (with-tramp-suspended-timers
      (password-read
       (or prompt
	   (with-current-buffer (process-buffer proc)
	     (tramp-check-for-regexp proc tramp-password-prompt-regexp)
	     (match-string 0)))))))