Decouple Client from KnownHostsFile

This commit is contained in:
Adnan Maolood
2020-12-17 19:50:26 -05:00
parent 176b260468
commit 28c5c857dc
3 changed files with 81 additions and 115 deletions
-9
View File
@@ -12,15 +12,6 @@ import (
"time"
)
// Trust represents the trustworthiness of a certificate.
type Trust int
const (
TrustNone Trust = iota // The certificate is not trusted.
TrustOnce // The certificate is trusted once.
TrustAlways // The certificate is trusted always.
)
// KnownHosts maps hosts to fingerprints.
type KnownHosts map[string]Fingerprint