InsecureIgnoreHostKey returns a function that can be used for ClientConfig.HostKeyCallback to accept any host key. It should not be used for production code.
()
| 253 | // ClientConfig.HostKeyCallback to accept any host key. It should |
| 254 | // not be used for production code. |
| 255 | func InsecureIgnoreHostKey() HostKeyCallback { |
| 256 | return func(hostname string, remote net.Addr, key PublicKey) error { |
| 257 | return nil |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | type fixedHostKey struct { |
| 262 | key PublicKey |
no outgoing calls
searching dependent graphs…