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

(init_transport_context): New function.

Rev: src/transport.c:1.18
Rev: src/transport.h:1.14
parent 6652cc61
......@@ -28,6 +28,7 @@
#include <assert.h>
#include "algorithms.h"
#include "format.h"
#include "io.h"
#include "lsh_string.h"
......@@ -60,6 +61,15 @@
static void *
oop_timer_retry(oop_source *oop, struct timeval tv, void *state);
void
init_transport_context (struct transport_context *self,
int is_server)
{
self->is_server = is_server;
self->algorithms = all_symmetric_algorithms();
self->kexinit = NULL;
}
void
init_transport_connection(struct transport_connection *self,
void (*kill)(struct resource *s),
......
......@@ -180,7 +180,10 @@ transport_write_flush(struct transport_write_state *self,
(kexinit object kexinit_info)))
*/
/* Uses for the key exchange method */
void
init_transport_context (struct transport_context *self, int is_server);
/* Used for the key exchange method */
/* GABA:
(class
......
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