Commit b5fc9824 authored by Niels Möller's avatar Niels Möller

Changed parse_uint8 to use int pointers.

Rev: src/debug.c:1.13
Rev: src/disconnect.c:1.5
Rev: src/keyexchange.c:1.17
Rev: src/parse.c:1.13
Rev: src/parse.h:1.12
Rev: src/publickey_crypto.c:1.16
parent 4e7e5c5a
......@@ -96,8 +96,8 @@ static int do_rec_debug(struct packet_handler *self,
struct lsh_string *packet)
{
struct simple_buffer buffer;
UINT8 msg_number;
UINT8 always_display;
int msg_number;
int always_display;
UINT32 length;
UINT8 *msg;
int language;
......
......@@ -43,7 +43,7 @@ static int do_disconnect(struct packet_handler *closure,
struct lsh_string *packet)
{
struct simple_buffer buffer;
UINT8 msg_number;
int msg_number;
UINT32 length;
UINT32 reason;
UINT8 *msg;
......
......@@ -59,7 +59,7 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet)
struct kexinit *res;
struct simple_buffer buffer;
struct simple_buffer sub_buffer;
UINT8 msg_number;
int msg_number;
UINT32 reserved;
int *lists[NLISTS];
......@@ -413,7 +413,7 @@ static int do_handle_newkeys(struct packet_handler *c,
{
struct handle_newkeys *closure = (struct handle_newkeys *) c;
struct simple_buffer buffer;
UINT8 msg_number;
int msg_number;
MDEBUG(closure);
......
......@@ -102,7 +102,7 @@ int parse_sub_buffer(struct simple_buffer *buffer,
return 1;
}
int parse_uint8(struct simple_buffer *buffer, UINT8 *result)
int parse_uint8(struct simple_buffer *buffer, int *result)
{
if (!LEFT)
return 0;
......
......@@ -62,7 +62,7 @@ struct lsh_string *parse_string_copy(struct simple_buffer *buffer);
int parse_sub_buffer(struct simple_buffer *buffer,
struct simple_buffer *subbuffer);
int parse_uint8(struct simple_buffer *buffer, UINT8 *result);
int parse_uint8(struct simple_buffer *buffer, int *result);
int parse_boolean(struct simple_buffer *buffer, int *result);
......
......@@ -540,7 +540,7 @@ int dh_process_client_msg(struct diffie_hellman_instance *self,
struct lsh_string *packet)
{
struct simple_buffer buffer;
UINT8 msg_number;
int msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......@@ -610,7 +610,7 @@ int dh_process_server_msg(struct diffie_hellman_instance *self,
struct lsh_string *packet)
{
struct simple_buffer buffer;
UINT8 msg_number;
int msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......
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