Pure-Rust asynchronous SSH library, both client and server

#19 thrussh_keys: Hashed known_hosts.

Opened by cheako on January 28, 2021
cheako on January 28, 2021

thrussh_keys::check_known_hosts_path() seems ill-equipped to handle hashed socket addresses. Also, I don’t know if this is a rust thing, but a file can be sizes well excess available memory… So don’t slurp if you’re just wanting Iterator::has().

pmeunier on January 29, 2021

thrussh_keys::check_known_hosts_path() seems ill-equipped to handle hashed socket addresses

Probably, because I don’t know what hashed socked addresses are. Any suggestion is welcome.

So don’t slurp if you’re just wanting Iterator::has().

The file is read line by line here, and it assumes that the input doesn’t have very large lines.