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

* src/connection.c (connection_init_io): Deleted the randomness

argument, and don't call make_packet_write. This way, both
handshake_command and gateway_make_connection can call this
function.

Rev: src/connection.c:1.82
Rev: src/connection.h:1.73
parent 980f0d48
......@@ -460,17 +460,10 @@ make_ssh_connection(enum connection_flag flags,
void
connection_init_io(struct ssh_connection *connection,
struct lsh_fd *socket,
struct randomness *r)
struct lsh_fd *socket)
{
/* Initialize i/o hooks */
connection->socket = socket;
connection->write_packet =
make_packet_debug(make_write_packet(connection, r, &socket->write_buffer->super),
(connection->debug_comment
? ssh_format("%lz sent", connection->debug_comment)
: ssh_format("Sent")));
connection->socket->write_buffer->report = make_connection_flow_controlled(connection);
}
......
......@@ -244,8 +244,7 @@ make_ssh_connection(enum connection_flag flags,
void
connection_init_io(struct ssh_connection *connection,
struct lsh_fd *socket,
struct randomness *r);
struct lsh_fd *socket);
void
connection_after_keyexchange(struct ssh_connection *self,
......
Supports Markdown
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