Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
8aeb3ac7
Commit
8aeb3ac7
authored
Feb 20, 2010
by
Niels Möller
Browse files
(init_transport_context): New function.
Rev: src/transport.c:1.18 Rev: src/transport.h:1.14
parent
6652cc61
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/transport.c
View file @
8aeb3ac7
...
...
@@ -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
),
...
...
src/transport.h
View file @
8aeb3ac7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment