Skip to content

Commit

Permalink
ssh: bannerfun works with openssh
Browse files Browse the repository at this point in the history
Update the existing renegotiation tests to include a bannerfun
so there is a check that the erlang server sending a banner
is compatible with openssh.
  • Loading branch information
alexandrejbr committed Jan 8, 2025
1 parent fffdce8 commit f60efc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ssh/test/ssh_to_openssh_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,12 @@ eserver_oclient_renegotiate_helper1(Config) ->
SystemDir = proplists:get_value(data_dir, Config),
PrivDir = proplists:get_value(priv_dir, Config),

%% Having the erlang sending a banner is accepted by openssh
BannerFun = fun(_U) -> <<"Banner to the client">> end,

{Pid, Host, Port} = ssh_test_lib:daemon([{system_dir, SystemDir},
{failfun, fun ssh_test_lib:failfun/2}]),
{failfun, fun ssh_test_lib:failfun/2},
{bannerfun, BannerFun}]),
ct:sleep(500),

RenegLimitK = 3,
Expand Down

0 comments on commit f60efc4

Please sign in to comment.