361
func TestClientUnsupportedKex(t *testing.T) {
363
kc.keys = append(kc.keys, rsakey)
364
config := &ClientConfig{
367
ClientAuthKeyring(kc),
369
Crypto: CryptoConfig{
370
KeyExchanges: []string{"diffie-hellman-group-exchange-sha256"}, // not currently supported
373
c, err := Dial("tcp", newMockAuthServer(t), config)
374
if err == nil || !strings.Contains(err.Error(), "no common algorithms") {
375
t.Errorf("got %v, expected 'no common algorithms'", err)