Commit Graph

15 Commits

Author SHA1 Message Date
adnano
8009de81eb Add function to add a host temporarily 2020-09-27 17:41:41 -04:00
adnano
32a9fcba0c Fix hosts not being added to known hosts file 2020-09-27 16:06:17 -04:00
adnano
e01d59f8f6 Don't store wildcards in the known hosts file 2020-09-27 15:03:46 -04:00
adnano
f0ce4576e1 Handle multiple DNS names
Each DNS name gets its own entry in the known hosts file
2020-09-27 14:22:41 -04:00
adnano
013b2a4d3e Add function to write known hosts to io.Writer 2020-09-27 14:18:30 -04:00
adnano
769b6ff4d9 Implement default known hosts path 2020-09-26 13:35:56 -04:00
adnano
1b3f9a0655 Remove (*KnownHosts).Has function 2020-09-26 13:29:29 -04:00
adnano
bf3e6b3c5c Differentiate between unknown and untrusted certificates 2020-09-26 13:27:03 -04:00
adnano
927dfd29c5 Refactor TOFU 2020-09-25 23:18:14 -04:00
adnano
b4295dd2dc Implement basic TOFU 2020-09-25 21:43:13 -04:00
adnano
4a95fe4a90 Add KnownHost.Write function 2020-09-25 20:55:37 -04:00
adnano
be55224f89 Fix known host expires check 2020-09-25 20:31:07 -04:00
adnano
eaa034204a Add method to check if hostname is found in KnownHosts 2020-09-25 20:22:48 -04:00
adnano
2f43c191cc Reorganize 2020-09-25 19:09:49 -04:00
adnano
ace3e682de Remove TLSConfig fields 2020-09-25 18:53:20 -04:00