From c0891cdfe9aaae96f95cc45b9a07271ad9a5a07c Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Wed, 13 Feb 2013 15:06:17 +0100 Subject: Added event/3 and clarified error message --- lib/ssh/src/ssh_connection_manager.erl | 2 +- lib/ssh/src/ssh_transport.erl | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/ssh') diff --git a/lib/ssh/src/ssh_connection_manager.erl b/lib/ssh/src/ssh_connection_manager.erl index 45b95495f1..9536eb9dec 100644 --- a/lib/ssh/src/ssh_connection_manager.erl +++ b/lib/ssh/src/ssh_connection_manager.erl @@ -40,7 +40,7 @@ close/2, stop/1, send/5, send_eof/2]). --export([open_channel/6, reply_request/3, request/6, request/7, global_request/4, event/2,cast/2]). +-export([open_channel/6, reply_request/3, request/6, request/7, global_request/4, event/2, event/3, cast/2]). %% Internal application API and spawn -export([send_msg/1, ssh_channel_info_handler/3]). diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index 0eb971a44c..a47a55b707 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -361,13 +361,7 @@ handle_kexdh_reply(#ssh_msg_kexdh_reply{public_host_key = HostKey, f = F, code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, description = "Key exchange failed", language = "en"}, - ErrorMsg = case Error of - {_, What} -> - {What, []}; - Else -> - {Else, []} - end, - throw({ErrorMsg, Disconnect}) + throw({Error, Disconnect}) end. handle_kex_dh_gex_request(#ssh_msg_kex_dh_gex_request{min = _Min, -- cgit v1.2.3