projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates. New data types.
[silc.git]
/
apps
/
silcd
/
packet_receive.c
diff --git
a/apps/silcd/packet_receive.c
b/apps/silcd/packet_receive.c
index 65ceb85dfb77001d369aa8439338658b2406b077..2f61ac896094c8fc9dd71cedaaed243b075321ab 100644
(file)
--- a/
apps/silcd/packet_receive.c
+++ b/
apps/silcd/packet_receive.c
@@
-45,9
+45,9
@@
void silc_server_notify(SilcServer server,
SilcServerEntry server_entry;
SilcChannelClientEntry chl;
SilcIDCacheEntry cache;
SilcServerEntry server_entry;
SilcChannelClientEntry chl;
SilcIDCacheEntry cache;
- u
nsigned int
mode;
+ u
int32
mode;
unsigned char *tmp;
unsigned char *tmp;
- u
nsigned int
tmp_len;
+ u
int32
tmp_len;
SILC_LOG_DEBUG(("Start"));
SILC_LOG_DEBUG(("Start"));
@@
-782,7
+782,7
@@
void silc_server_notify(SilcServer server,
* Distribute the notify to local clients on channels
*/
unsigned char *id;
* Distribute the notify to local clients on channels
*/
unsigned char *id;
- u
nsigned int
id_len;
+ u
int32
id_len;
SILC_LOG_DEBUG(("KILLED notify"));
SILC_LOG_DEBUG(("KILLED notify"));
@@
-960,7
+960,7
@@
void silc_server_notify_list(SilcServer server,
{
SilcPacketContext *new;
SilcBuffer buffer;
{
SilcPacketContext *new;
SilcBuffer buffer;
- u
nsigned short
len;
+ u
int16
len;
SILC_LOG_DEBUG(("Processing New Notify List"));
SILC_LOG_DEBUG(("Processing New Notify List"));
@@
-1206,8
+1206,8
@@
void silc_server_channel_message(SilcServer server,
sock->type == SILC_SOCKET_TYPE_ROUTER &&
!(channel->mode & SILC_CHANNEL_MODE_PRIVKEY)) {
SilcBuffer chp;
sock->type == SILC_SOCKET_TYPE_ROUTER &&
!(channel->mode & SILC_CHANNEL_MODE_PRIVKEY)) {
SilcBuffer chp;
- u
nsigned int
iv_len, i;
- u
nsigned short
data_len, flags;
+ u
int32
iv_len, i;
+ u
int16
data_len, flags;
iv_len = silc_cipher_get_block_len(channel->channel_key);
if (channel->iv[0] == '\0')
iv_len = silc_cipher_get_block_len(channel->channel_key);
if (channel->iv[0] == '\0')
@@
-1434,7
+1434,7
@@
SilcServerEntry silc_server_new_server(SilcServer server,
SilcServerID *server_id;
SilcIDListData idata;
unsigned char *server_name, *id_string;
SilcServerID *server_id;
SilcIDListData idata;
unsigned char *server_name, *id_string;
- u
nsigned short
id_len, name_len;
+ u
int16
id_len, name_len;
int ret;
SILC_LOG_DEBUG(("Creating new server"));
int ret;
SILC_LOG_DEBUG(("Creating new server"));
@@
-1647,7
+1647,7
@@
void silc_server_new_id_list(SilcServer server, SilcSocketConnection sock,
{
SilcPacketContext *new_id;
SilcBuffer idp;
{
SilcPacketContext *new_id;
SilcBuffer idp;
- u
nsigned short
id_len;
+ u
int16
id_len;
SILC_LOG_DEBUG(("Processing New ID List"));
SILC_LOG_DEBUG(("Processing New ID List"));
@@
-1715,10
+1715,10
@@
void silc_server_new_channel(SilcServer server,
SilcChannelPayload payload;
SilcChannelID *channel_id;
char *channel_name;
SilcChannelPayload payload;
SilcChannelID *channel_id;
char *channel_name;
- u
nsigned int
name_len;
+ u
int32
name_len;
unsigned char *id;
unsigned char *id;
- u
nsigned int
id_len;
- u
nsigned int
mode;
+ u
int32
id_len;
+ u
int32
mode;
SILC_LOG_DEBUG(("Processing New Channel"));
SILC_LOG_DEBUG(("Processing New Channel"));
@@
-1882,7
+1882,7
@@
void silc_server_new_channel_list(SilcServer server,
{
SilcPacketContext *new;
SilcBuffer buffer;
{
SilcPacketContext *new;
SilcBuffer buffer;
- u
nsigned short
len1, len2;
+ u
int16
len1, len2;
SILC_LOG_DEBUG(("Processing New Channel List"));
SILC_LOG_DEBUG(("Processing New Channel List"));
@@
-1989,7
+1989,7
@@
void silc_server_connection_auth_request(SilcServer server,
SilcPacketContext *packet)
{
SilcServerConfigSectionClientConnection *client = NULL;
SilcPacketContext *packet)
{
SilcServerConfigSectionClientConnection *client = NULL;
- u
nsigned short
conn_type;
+ u
int16
conn_type;
int ret;
SilcAuthMethod auth_meth;
int ret;
SilcAuthMethod auth_meth;