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

Use a connection->kex_state variable, to keep track of what key

exchange messages are expected.

Rev: src/connection.h:1.15
parent 6c1dde6a
......@@ -36,9 +36,7 @@ struct ssh_connection
* algorithms. Is there a better way?
* Perhaps one can keep this pointer
* inside the newkeys-handler? */
#endif
#if 0
int type; /* CONNECTION_SERVER or CONNECTION_CLIENT */
#endif
......@@ -62,26 +60,26 @@ struct ssh_connection
struct mac_instance *send_mac;
struct crypto_instance *send_crypto;
/* Table of all known message types */
struct packet_handler *dispatch[0x100];
/* Shared handlers */
struct packet_handler *ignore;
struct packet_handler *unimplemented;
struct packet_handler *fail;
/* Key exchange */
int kex_state;
#if 0
int kex_state;
struct make_kexinit *make_kexinit;
#endif
/* First element is the kexinit sent by the server */
struct kexinit *kexinits[2];
struct lsh_string *literal_kexinits[2];
struct newkeys_info *newkeys; /* Negotiated algorithms */
int ignore_one_packet;
/* Table of all known message types */
struct packet_handler *dispatch[0x100];
/* Shared handlers */
struct packet_handler *ignore;
struct packet_handler *unimplemented;
struct packet_handler *fail;
#if 0
int provides_privacy;
int provides_integrity;
......
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