#19 thrussh_keys: Hashed known_hosts.
Opened by cheako on Jan 29, 2021, 3:22 AM
// cheako on Jan 29, 2021, 3:22 AM
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 Jan 29, 2021, 7:07 AM
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.