Function: tramp-parse-putty

tramp-parse-putty is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-parse-putty REGISTRY-OR-DIRNAME)

Documentation

Return a list of (user host) tuples allowed to access.

User is always nil.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-putty (registry-or-dirname)
  "Return a list of (user host) tuples allowed to access.
User is always nil."
  (if (eq system-type 'windows-nt)
      (with-tramp-connection-property nil "parse-putty"
	(with-temp-buffer
	  (when (zerop (tramp-call-process
			nil "reg" nil t nil "query" registry-or-dirname))
	    (goto-char (point-min))
	    (cl-loop while (not (eobp)) collect
		     (tramp-parse-putty-group registry-or-dirname)))))
    ;; UNIX case.
    (tramp-parse-shostkeys-sknownhosts
     registry-or-dirname
     (tramp-compat-rx bol (group (regexp tramp-host-regexp)) eol))))