Commit f6e7c7cc authored by Niels Möller's avatar Niels Möller
Browse files

(do_handle_newkeys): Added verbose message

when receiving NEWKEYS.
(do_handle_kexinit): Added verbose message when receiving KEXINIT
message.

Rev: src/keyexchange.c:1.77
parent 42613265
......@@ -224,9 +224,11 @@ do_handle_kexinit(struct packet_handler *c,
int mode = connection->flags & CONNECTION_MODE;
struct kexinit *msg = parse_kexinit(packet);
int i;
verbose("Received KEXINIT message. Key exchange initated.\n");
if (connection->kex_state != KEX_STATE_INIT)
{
PROTOCOL_ERROR(connection->e, "Unexpected KEXINIT message.");
......@@ -586,6 +588,8 @@ do_handle_newkeys(struct packet_handler *c,
simple_buffer_init(&buffer, packet->length, packet->data);
verbose("Received NEWKEYS. Key exchange finished.\n");
if (parse_uint8(&buffer, &msg_number)
&& (msg_number == SSH_MSG_NEWKEYS)
&& (parse_eod(&buffer)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment