Skip to content

Commit

Permalink
Fix regression from 6379b47
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
reynir committed Sep 18, 2024
1 parent 9543077 commit b10ebd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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; }]
Expand Down

0 comments on commit b10ebd7

Please sign in to comment.