Function: tramp-parse-shostkeys-sknownhosts
tramp-parse-shostkeys-sknownhosts is a byte-compiled function defined
in tramp.el.gz.
Signature
(tramp-parse-shostkeys-sknownhosts DIRNAME REGEXP)
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
;; Generic function.
(defun tramp-parse-shostkeys-sknownhosts (dirname regexp)
"Return a list of (user host) tuples allowed to access.
User is always nil."
;; On Windows, there are problems in completion when
;; `default-directory' is remote.
(let* ((default-directory tramp-compat-temporary-file-directory)
(files (and (file-directory-p dirname) (directory-files dirname))))
(cl-loop
for f in files
when (and (not (string-match "^\\.\\.?$" f)) (string-match regexp f))
collect (list nil (match-string 1 f)))))