X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_channel.c;h=c98a8823909d602fe8b666995b99e7e0f5e4e5ed;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hp=1a4a6d5968a7dc86acd239d228369e0ce975f571;hpb=386c883d8774999c6e74d7c6c37e52e4163a4cb1;p=silc.git diff --git a/lib/silcclient/client_channel.c b/lib/silcclient/client_channel.c index 1a4a6d59..c98a8823 100644 --- a/lib/silcclient/client_channel.c +++ b/lib/silcclient/client_channel.c @@ -22,7 +22,8 @@ channel key receiving and setting, and channel private key handling routines. */ -#include "clientlibincludes.h" +#include "silcincludes.h" +#include "silcclient.h" #include "client_internal.h" /* Sends packet to the `channel'. Packet to channel is always encrypted @@ -38,7 +39,7 @@ void silc_client_send_channel_message(SilcClient client, SilcChannelPrivateKey key, SilcMessageFlags flags, unsigned char *data, - uint32 data_len, + SilcUInt32 data_len, int force_send) { int i; @@ -48,7 +49,7 @@ void silc_client_send_channel_message(SilcClient client, SilcCipher cipher; SilcHmac hmac; unsigned char *id_string; - uint32 iv_len; + SilcUInt32 iv_len; int block_len; SILC_LOG_DEBUG(("Sending packet to channel")); @@ -164,7 +165,7 @@ typedef struct { static void silc_client_channel_message_cb(SilcClient client, SilcClientConnection conn, SilcClientEntry *clients, - uint32 clients_count, + SilcUInt32 clients_count, void *context) { SilcChannelClientResolve res = (SilcChannelClientResolve)context; @@ -342,7 +343,7 @@ void silc_client_save_channel_key(SilcClient client, SilcChannelEntry channel) { unsigned char *id_string, *key, *cipher, *hmac, hash[32]; - uint32 tmp_len; + SilcUInt32 tmp_len; SilcChannelID *id; SilcChannelKeyPayload payload; @@ -473,7 +474,7 @@ int silc_client_add_channel_private_key(SilcClient client, char *cipher, char *hmac, unsigned char *key, - uint32 key_len) + SilcUInt32 key_len) { SilcChannelPrivateKey entry; unsigned char hash[32]; @@ -628,10 +629,10 @@ SilcChannelPrivateKey * silc_client_list_channel_private_keys(SilcClient client, SilcClientConnection conn, SilcChannelEntry channel, - uint32 *key_count) + SilcUInt32 *key_count) { SilcChannelPrivateKey *keys = NULL, entry; - uint32 count = 0; + SilcUInt32 count = 0; if (!channel->private_keys) return NULL; @@ -652,7 +653,7 @@ silc_client_list_channel_private_keys(SilcClient client, /* Frees the SilcChannelPrivateKey array. */ void silc_client_free_channel_private_keys(SilcChannelPrivateKey *keys, - uint32 key_count) + SilcUInt32 key_count) { silc_free(keys); }