File 4982-ssh-bannerfun-works-with-openssh.patch of Package erlang
From f60efc41f6bac7851ebe6cd6267163c0a88b4270 Mon Sep 17 00:00:00 2001
From: Alexandre Rodrigues <alexandrejbr@live.com>
Date: Tue, 7 Jan 2025 16:31:22 +0100
Subject: [PATCH 2/4] ssh: bannerfun works with openssh
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.
---
lib/ssh/test/ssh_to_openssh_SUITE.erl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl
index 183034f985..2d0842cabf 100644
--- a/lib/ssh/test/ssh_to_openssh_SUITE.erl
+++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl
@@ -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,
--
2.43.0