From: Pekka Riikonen Date: Wed, 1 Nov 2000 12:19:06 +0000 (+0000) Subject: Defined SilcIdType as unsigned short, not unsigned char. X-Git-Tag: SILC.0.1~345 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=a5ab3cea86b999ad95a8f552b7f7153ba0d772f5 Defined SilcIdType as unsigned short, not unsigned char. --- diff --git a/lib/silccore/id.h b/lib/silccore/id.h index 56551c4a..9da7f873 100644 --- a/lib/silccore/id.h +++ b/lib/silccore/id.h @@ -42,7 +42,7 @@ #define SILC_ID_CHANNEL 3 /* Type definition for the ID types. */ -typedef unsigned char SilcIdType; +typedef unsigned short SilcIdType; /* 64 bit SilcServerID structure: diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 63f179ae..f2800597 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -764,5 +764,3 @@ SilcPacketContext *silc_packet_context_dup(SilcPacketContext *ctx) return new; } - - diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index fe0c81f4..a13b7268 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -95,11 +95,18 @@ typedef unsigned char SilcPacketFlags; unsigned char *src_id unsigned int src_id_len - SilcIdType src_id_type + unsigned char src_id_type Source ID, its length and type. On packet reception retuned ID's are always the hash values of the ID's from the packet. + unsigned char *dst_id; + unsigned int dst_id_len; + unsigned char src_id_type; + + Destination ID, its length and type. On packet reception retuned + ID's are always the hash values of the ID's from the packet. + SilcHash hash Pointer to allocated hash object. This must be MD5 hash object. @@ -113,11 +120,11 @@ typedef struct { unsigned char *src_id; unsigned int src_id_len; - SilcIdType src_id_type; + unsigned char src_id_type; unsigned char *dst_id; unsigned int dst_id_len; - SilcIdType dst_id_type; + unsigned char dst_id_type; unsigned int truelen; unsigned int padlen;