mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Make it compile, update for changes in channel structure.
--HG-- branch : agent-client extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
This commit is contained in:
11
session.h
11
session.h
@@ -215,6 +215,17 @@ struct serversession {
|
||||
|
||||
};
|
||||
|
||||
struct protocol {
|
||||
int sock; /* read/write with this */
|
||||
buffer * readbuf; /* Pending input data, should read a packet's worth */
|
||||
struct Queue writequeue; /* A queue of output buffers to send */
|
||||
void (*process)(); /* To be called after reading */
|
||||
size_t (*bytes_to_read)();
|
||||
void * state; /* protocol specific */
|
||||
void (*protocol_closed)(); /* to be run when the sock gets closed */
|
||||
void (*loop_handler)(); /* to run at end of each loop */
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
KEX_NOTHING,
|
||||
KEXINIT_RCVD,
|
||||
|
||||
Reference in New Issue
Block a user