Function: tramp-clear-passwd
tramp-clear-passwd is a byte-compiled function defined in tramp.el.gz.
Signature
(tramp-clear-passwd VEC)
Documentation
Clear password cache for connection related to VEC.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-clear-passwd (vec)
"Clear password cache for connection related to VEC."
(declare (tramp-suppress-trace t))
(when-let* ((hop (cadr (reverse (tramp-compute-multi-hops vec)))))
;; Clear also the passwords of the hops.
(tramp-clear-passwd hop))
(when-let* ((pw-spec (tramp-get-connection-property vec " pw-spec")))
(auth-source-forget pw-spec)))