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

(handshake_command): Store the make_kexinit

object in the connection's kexinit attribute.

Rev: src/handshake.c:1.11
parent e9076d36
...@@ -311,16 +311,6 @@ make_handshake_info(enum connection_flag flags, ...@@ -311,16 +311,6 @@ make_handshake_info(enum connection_flag flags,
* private keys (for the server) or a hostkey database (for the * private keys (for the server) or a hostkey database (for the
* client). */ * client). */
/* GABA:
(class
(name handshake_command_2)
(super command)
(vars
(info object handshake_info)
(init object make_kexinit)
(extra object lsh_object)))
*/
/* Buffer size when reading from the socket */ /* Buffer size when reading from the socket */
#define BUF_SIZE (1<<14) #define BUF_SIZE (1<<14)
...@@ -408,10 +398,9 @@ DEFINE_COMMAND4(handshake_command) ...@@ -408,10 +398,9 @@ DEFINE_COMMAND4(handshake_command)
"Handshake timed out"); "Handshake timed out");
connection->versions[mode] = version; connection->versions[mode] = version;
connection->kexinits[mode] = MAKE_KEXINIT(init); connection->kexinit = init;
connection->dispatch[SSH_MSG_KEXINIT] connection->dispatch[SSH_MSG_KEXINIT]
= make_kexinit_handler(init, = make_kexinit_handler(extra, info->algorithms);
extra, info->algorithms);
#if WITH_SSH1_FALLBACK #if WITH_SSH1_FALLBACK
/* In this mode the server SHOULD NOT send carriage return character (ascii /* In this mode the server SHOULD NOT send carriage return character (ascii
......
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