aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_handler.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-11-25 20:02:36 +0100
committerHans Nilsson <[email protected]>2015-11-26 15:09:08 +0100
commit9b9d1cfa157134d8b14aaa2de5b36db28cb8b17a (patch)
treea9f16e920720f9000de3922444c511c33c04a604 /lib/ssh/src/ssh_connection_handler.erl
parent9dd0c95d56ec33bde9668bb47668aa27981ea18d (diff)
downloadotp-9b9d1cfa157134d8b14aaa2de5b36db28cb8b17a.tar.gz
otp-9b9d1cfa157134d8b14aaa2de5b36db28cb8b17a.tar.bz2
otp-9b9d1cfa157134d8b14aaa2de5b36db28cb8b17a.zip
ssh: implemented server side SSH_MSG_KEX_DH_GEX_REQUEST_OLD for putty client
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index fcd66b80c0..5b4f6081c1 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -425,6 +425,12 @@ key_exchange(#ssh_msg_kex_dh_gex_request{} = Msg,
send_msg(GexGroup, State),
{next_state, key_exchange_dh_gex_init, next_packet(State#state{ssh_params = Ssh})};
+key_exchange(#ssh_msg_kex_dh_gex_request_old{} = Msg,
+ #state{ssh_params = #ssh{role = server} = Ssh0} = State) ->
+ {ok, GexGroup, Ssh} = ssh_transport:handle_kex_dh_gex_request(Msg, Ssh0),
+ send_msg(GexGroup, State),
+ {next_state, key_exchange_dh_gex_init, next_packet(State#state{ssh_params = Ssh})};
+
key_exchange(#ssh_msg_kex_dh_gex_group{} = Msg,
#state{ssh_params = #ssh{role = client} = Ssh0} = State) ->
{ok, KexGexInit, Ssh} = ssh_transport:handle_kex_dh_gex_group(Msg, Ssh0),