projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
lib
/
silccore
/
silcid.c
diff --git
a/lib/silccore/silcid.c
b/lib/silccore/silcid.c
index e3a37d8e99d91c312b1a7ba316eda11933c0af4d..655601efffc5ce0ff65afd0b3b6cacc9da204b8c 100644
(file)
--- a/
lib/silccore/silcid.c
+++ b/
lib/silccore/silcid.c
@@
-35,14
+35,14
@@
struct SilcIDPayloadStruct {
SilcIdType type;
struct SilcIDPayloadStruct {
SilcIdType type;
-
ui
nt16 len;
+
SilcUI
nt16 len;
unsigned char *id;
};
/* Parses buffer and return ID payload into payload structure */
SilcIDPayload silc_id_payload_parse(const unsigned char *payload,
unsigned char *id;
};
/* Parses buffer and return ID payload into payload structure */
SilcIDPayload silc_id_payload_parse(const unsigned char *payload,
-
ui
nt32 payload_len)
+
SilcUI
nt32 payload_len)
{
SilcBufferStruct buffer;
SilcIDPayload new;
{
SilcBufferStruct buffer;
SilcIDPayload new;
@@
-82,11
+82,11
@@
SilcIDPayload silc_id_payload_parse(const unsigned char *payload,
/* Return the ID directly from the raw payload data. */
/* Return the ID directly from the raw payload data. */
-void *silc_id_payload_parse_id(const unsigned char *data,
ui
nt32 len)
+void *silc_id_payload_parse_id(const unsigned char *data,
SilcUI
nt32 len)
{
SilcBufferStruct buffer;
SilcIdType type;
{
SilcBufferStruct buffer;
SilcIdType type;
-
ui
nt16 idlen;
+
SilcUI
nt16 idlen;
unsigned char *id_data = NULL;
int ret;
void *id;
unsigned char *id_data = NULL;
int ret;
void *id;
@@
-124,7
+124,7
@@
SilcBuffer silc_id_payload_encode(const void *id, SilcIdType type)
{
SilcBuffer buffer;
unsigned char *id_data;
{
SilcBuffer buffer;
unsigned char *id_data;
-
ui
nt32 len;
+
SilcUI
nt32 len;
id_data = silc_id_id2str(id, type);
len = silc_id_get_len(id, type);
id_data = silc_id_id2str(id, type);
len = silc_id_get_len(id, type);
@@
-135,7
+135,7
@@
SilcBuffer silc_id_payload_encode(const void *id, SilcIdType type)
}
SilcBuffer silc_id_payload_encode_data(const unsigned char *id,
}
SilcBuffer silc_id_payload_encode_data(const unsigned char *id,
-
ui
nt32 id_len, SilcIdType type)
+
SilcUI
nt32 id_len, SilcIdType type)
{
SilcBuffer buffer;
{
SilcBuffer buffer;
@@
-190,7
+190,7
@@
unsigned char *silc_id_payload_get_data(SilcIDPayload payload)
/* Get length of ID */
/* Get length of ID */
-
ui
nt32 silc_id_payload_get_len(SilcIDPayload payload)
+
SilcUI
nt32 silc_id_payload_get_len(SilcIDPayload payload)
{
return payload ? payload->len : 0;
}
{
return payload ? payload->len : 0;
}
@@
-203,7
+203,7
@@
unsigned char *silc_id_id2str(const void *id, SilcIdType type)
SilcServerID *server_id;
SilcClientID *client_id;
SilcChannelID *channel_id;
SilcServerID *server_id;
SilcClientID *client_id;
SilcChannelID *channel_id;
-
ui
nt32 id_len = silc_id_get_len(id, type);
+
SilcUI
nt32 id_len = silc_id_get_len(id, type);
switch(type) {
case SILC_ID_SERVER:
switch(type) {
case SILC_ID_SERVER:
@@
-237,7
+237,7
@@
unsigned char *silc_id_id2str(const void *id, SilcIdType type)
/* Converts string to a ID */
/* Converts string to a ID */
-void *silc_id_str2id(const unsigned char *id,
ui
nt32 id_len, SilcIdType type)
+void *silc_id_str2id(const unsigned char *id,
SilcUI
nt32 id_len, SilcIdType type)
{
switch(type) {
{
switch(type) {
@@
-299,7
+299,7
@@
void *silc_id_str2id(const unsigned char *id, uint32 id_len, SilcIdType type)
/* Returns length of the ID */
/* Returns length of the ID */
-
ui
nt32 silc_id_get_len(const void *id, SilcIdType type)
+
SilcUI
nt32 silc_id_get_len(const void *id, SilcIdType type)
{
switch(type) {
case SILC_ID_SERVER:
{
switch(type) {
case SILC_ID_SERVER: