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)."
  ;; We suspend the timers while reading the password.
  (let ((stimers (with-timeout-suspend)))
    (unwind-protect
	(password-read
	 (or prompt
	     (with-current-buffer (process-buffer proc)
	       (tramp-check-for-regexp proc tramp-password-prompt-regexp)
	       (match-string 0))))
      ;; Reenable the timers.
      (with-timeout-unsuspend stimers))))