go.crypto/ssh: let client accept DSA and ECDSA host key algorithms.

R=agl, dave, jpsugar, m4dh4tt3r, agl
CC=golang-dev
https://golang.org/cl/14420045
This commit is contained in:
Han-Wen Nienhuys
2013-10-07 18:30:34 -04:00
committed by Adam Langley
parent 153ce2a1d2
commit 41400feb0b
3 changed files with 31 additions and 15 deletions
+4 -2
View File
@@ -40,8 +40,10 @@ func TestHostKeyCheck(t *testing.T) {
conf := clientConfig()
k := conf.HostKeyChecker.(*storedHostKey)
// change the key.
k.keys["ssh-rsa"][25]++
// change the keys.
k.keys[ssh.KeyAlgoRSA][25]++
k.keys[ssh.KeyAlgoDSA][25]++
k.keys[ssh.KeyAlgoECDSA256][25]++
conn, err := server.TryDial(conf)
if err == nil {