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

(ssh_connection): New attribute kexinit, needed

for initiating keyexchange.

Rev: src/connection.c:1.69
Rev: src/connection.h:1.63
parent cdb6d2b8
...@@ -371,6 +371,8 @@ make_ssh_connection(enum connection_flag flags, ...@@ -371,6 +371,8 @@ make_ssh_connection(enum connection_flag flags,
connection->rec_max_packet = SSH_MAX_PACKET; connection->rec_max_packet = SSH_MAX_PACKET;
/* Initial encryption state */ /* Initial encryption state */
connection->kexinit = NULL;
connection->send_crypto = connection->rec_crypto = NULL; connection->send_crypto = connection->rec_crypto = NULL;
connection->send_mac = connection->rec_mac = NULL; connection->send_mac = connection->rec_mac = NULL;
connection->send_compress = connection->rec_compress = NULL; connection->send_compress = connection->rec_compress = NULL;
...@@ -519,6 +521,8 @@ connection_send_kex_end(struct ssh_connection *self) ...@@ -519,6 +521,8 @@ connection_send_kex_end(struct ssh_connection *self)
C_WRITE_NOW(self, string_queue_remove_head(&self->send_queue)); C_WRITE_NOW(self, string_queue_remove_head(&self->send_queue));
self->send_kex_only = 0; self->send_kex_only = 0;
/* FIXME: Restart channels */
} }
/* Serialization. */ /* Serialization. */
......
...@@ -165,6 +165,9 @@ do_##NAME(struct packet_handler *s UNUSED, \ ...@@ -165,6 +165,9 @@ do_##NAME(struct packet_handler *s UNUSED, \
; FIXME: Perhaps this should be a sockaddr or some other object ; FIXME: Perhaps this should be a sockaddr or some other object
; that facilitates reverse lookups? ; that facilitates reverse lookups?
(peer object address_info); (peer object address_info);
; Keyexchange
(kexinit object make_kexinit)
; Receiving ; Receiving
(rec_max_packet . UINT32) (rec_max_packet . UINT32)
......
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