aboutsummaryrefslogtreecommitdiff
path: root/ssh/test/recording_client_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/test/recording_client_test.go')
-rw-r--r--ssh/test/recording_client_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh/test/recording_client_test.go b/ssh/test/recording_client_test.go
index a312003..5c7830f 100644
--- a/ssh/test/recording_client_test.go
+++ b/ssh/test/recording_client_test.go
@@ -236,7 +236,7 @@ func recordingsClientConfig() *ssh.ClientConfig {
config := clientConfig()
config.SetDefaults()
// Remove ML-KEM since it only works with Go 1.24.
- if config.KeyExchanges[0] == "mlkem768x25519-sha256" {
+ if config.KeyExchanges[0] == ssh.KeyExchangeMLKEM768X25519 {
config.KeyExchanges = config.KeyExchanges[1:]
}
config.Auth = []ssh.AuthMethod{
@@ -352,7 +352,7 @@ func TestHostKeyCheck(t *testing.T) {
// change the keys.
hostDB.keys[ssh.KeyAlgoRSA][25]++
- hostDB.keys[ssh.KeyAlgoDSA][25]++
+ hostDB.keys[ssh.InsecureKeyAlgoDSA][25]++
hostDB.keys[ssh.KeyAlgoECDSA256][25]++
test := clientTest{