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
+5 -3
View File
@@ -16,8 +16,6 @@ import (
// These are string constants in the SSH protocol.
const (
hostAlgoRSA = "ssh-rsa"
hostAlgoDSA = "ssh-dss"
compressionNone = "none"
serviceUserAuth = "ssh-userauth"
serviceSSH = "ssh-connection"
@@ -28,7 +26,11 @@ var supportedKexAlgos = []string{
kexAlgoDH14SHA1, kexAlgoDH1SHA1,
}
var supportedHostKeyAlgos = []string{hostAlgoRSA}
var supportedHostKeyAlgos = []string{
KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521,
KeyAlgoRSA, KeyAlgoDSA,
}
var supportedCompressions = []string{compressionNone}
// hashFuncs keeps the mapping of supported algorithms to their respective