crypto/ssh/knownhosts: fix out-of-date documentation for checkAddr
Change-Id: I03e9cf1ee82b38f15232a48992bae0234bd51f1a GitHub-Last-Rev: fd7b92d97c7b52ae00821bad099cf45ff9836cd1 GitHub-Pull-Request: golang/crypto#71 Reviewed-on: https://go-review.googlesource.com/c/156878 Reviewed-by: Han-Wen Nienhuys <hanwen@google.com> Run-TryBot: Han-Wen Nienhuys <hanwen@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Han-Wen Nienhuys
parent
6407268620
commit
057139ce5d
@@ -350,8 +350,8 @@ func (db *hostKeyDB) check(address string, remote net.Addr, remoteKey ssh.Public
|
|||||||
return db.checkAddr(hostToCheck, remoteKey)
|
return db.checkAddr(hostToCheck, remoteKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
// checkAddrs checks if we can find the given public key for any of
|
// checkAddr checks if we can find the given public key for the
|
||||||
// the given addresses. If we only find an entry for the IP address,
|
// given address. If we only find an entry for the IP address,
|
||||||
// or only the hostname, then this still succeeds.
|
// or only the hostname, then this still succeeds.
|
||||||
func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error {
|
func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error {
|
||||||
// TODO(hanwen): are these the right semantics? What if there
|
// TODO(hanwen): are these the right semantics? What if there
|
||||||
|
|||||||
Reference in New Issue
Block a user