From b10ebd791029551e2116231046016a4f4db2fb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Wed, 18 Sep 2024 21:13:16 +0200 Subject: [PATCH] Fix regression from 6379b473 The server-sig-algs should be Hostkey.preferred_algs, not just the algorithm for the servers host key. That way we can have a server that uses a ed25519 host key and allow authentication with an RSA key. --- lib/server.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.ml b/lib/server.ml index a8056f3..0eda600 100644 --- a/lib/server.ml +++ b/lib/server.ml @@ -372,7 +372,7 @@ let input_msg t msg now = if t.ext_info then let algs = String.concat "," - (List.map Hostkey.alg_to_string (host_key_algs t.host_key)); + (List.map Hostkey.alg_to_string Hostkey.preferred_algs); in let extensions = [Extension { name = "server-sig-algs"; value = algs; }]