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:
committed by
Adam Langley
parent
153ce2a1d2
commit
41400feb0b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user