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]
/
lib
/
silcclient
/
silcapi.h
diff --git
a/lib/silcclient/silcapi.h
b/lib/silcclient/silcapi.h
index 4dc56d03e4f172c7383075454f3fa92004a436eb..17bb058aa6e6614dfd7c6adef1bb5d0b59e8cbad 100644
(file)
--- a/
lib/silcclient/silcapi.h
+++ b/
lib/silcclient/silcapi.h
@@
-69,7
+69,7
@@
typedef struct {
provided it. This is NULL if the
library generated the key or if
the SKE key material was used. */
provided it. This is NULL if the
library generated the key or if
the SKE key material was used. */
- u
nsigned int key_len;
/* The key length */
+ u
int32 key_len;
/* The key length */
} *SilcPrivateMessageKeys;
/******************************************************************************
} *SilcPrivateMessageKeys;
/******************************************************************************
@@
-159,10
+159,10
@@
typedef struct {
and `auth_data_len'. The function returns TRUE if authentication method
is found and FALSE if not. `conn' may be NULL. */
int (*get_auth_method)(SilcClient client, SilcClientConnection conn,
and `auth_data_len'. The function returns TRUE if authentication method
is found and FALSE if not. `conn' may be NULL. */
int (*get_auth_method)(SilcClient client, SilcClientConnection conn,
- char *hostname, u
nsigned short
port,
+ char *hostname, u
int16
port,
SilcProtocolAuthMeth *auth_meth,
unsigned char **auth_data,
SilcProtocolAuthMeth *auth_meth,
unsigned char **auth_data,
- u
nsigned int
*auth_data_len);
+ u
int32
*auth_data_len);
/* Verifies received public key. The `conn_type' indicates which entity
(server, client etc.) has sent the public key. If user decides to trust
/* Verifies received public key. The `conn_type' indicates which entity
(server, client etc.) has sent the public key. If user decides to trust
@@
-171,7
+171,7
@@
typedef struct {
TRUE. */
int (*verify_public_key)(SilcClient client, SilcClientConnection conn,
SilcSocketType conn_type, unsigned char *pk,
TRUE. */
int (*verify_public_key)(SilcClient client, SilcClientConnection conn,
SilcSocketType conn_type, unsigned char *pk,
- u
nsigned int
pk_len, SilcSKEPKType pk_type);
+ u
int32
pk_len, SilcSKEPKType pk_type);
/* Ask (interact, that is) a passphrase from user. Returns the passphrase
or NULL on error. */
/* Ask (interact, that is) a passphrase from user. Returns the passphrase
or NULL on error. */
@@
-316,7
+316,7
@@
void silc_client_send_channel_message(SilcClient client,
SilcChannelPrivateKey key,
SilcMessageFlags flags,
unsigned char *data,
SilcChannelPrivateKey key,
SilcMessageFlags flags,
unsigned char *data,
- u
nsigned int
data_len,
+ u
int32
data_len,
int force_send);
/* Sends private message to remote client. If private message key has
int force_send);
/* Sends private message to remote client. If private message key has
@@
-331,7
+331,7
@@
void silc_client_send_private_message(SilcClient client,
SilcClientEntry client_entry,
SilcMessageFlags flags,
unsigned char *data,
SilcClientEntry client_entry,
SilcMessageFlags flags,
unsigned char *data,
- u
nsigned int
data_len,
+ u
int32
data_len,
int force_send);
int force_send);
@@
-344,7
+344,7
@@
void silc_client_send_private_message(SilcClient client,
typedef void (*SilcGetClientCallback)(SilcClient client,
SilcClientConnection conn,
SilcClientEntry *clients,
typedef void (*SilcGetClientCallback)(SilcClient client,
SilcClientConnection conn,
SilcClientEntry *clients,
- u
nsigned int
clients_count,
+ u
int32
clients_count,
void *context);
/* Finds client entry or entries by the `nickname' and `server'. The
void *context);
/* Finds client entry or entries by the `nickname' and `server'. The
@@
-368,7
+368,7
@@
SilcClientEntry *silc_client_get_clients_local(SilcClient client,
SilcClientConnection conn,
char *nickname,
char *server,
SilcClientConnection conn,
char *nickname,
char *server,
- u
nsigned int
*clients_count);
+ u
int32
*clients_count);
/* Gets client entries by the list of client ID's `client_id_list'. This
always resolves those client ID's it does not know yet from the server
/* Gets client entries by the list of client ID's `client_id_list'. This
always resolves those client ID's it does not know yet from the server
@@
-378,7
+378,7
@@
SilcClientEntry *silc_client_get_clients_local(SilcClient client,
will be called after the entries are available. */
void silc_client_get_clients_by_list(SilcClient client,
SilcClientConnection conn,
will be called after the entries are available. */
void silc_client_get_clients_by_list(SilcClient client,
SilcClientConnection conn,
- u
nsigned int
list_count,
+ u
int32
list_count,
SilcBuffer client_id_list,
SilcGetClientCallback completion,
void *context);
SilcBuffer client_id_list,
SilcGetClientCallback completion,
void *context);
@@
-429,8
+429,8
@@
SilcClientCommand *silc_client_command_find(const char *name);
/* Generic function to send any command. The arguments must be sent already
encoded into correct form and in correct order. */
void silc_client_send_command(SilcClient client, SilcClientConnection conn,
/* Generic function to send any command. The arguments must be sent already
encoded into correct form and in correct order. */
void silc_client_send_command(SilcClient client, SilcClientConnection conn,
- SilcCommand command, u
nsigned short
ident,
- u
nsigned int
argc, ...);
+ SilcCommand command, u
int16
ident,
+ u
int32
argc, ...);
/* Pending Command callback destructor. This is called after calling the
pending callback or if error occurs while processing the pending command.
/* Pending Command callback destructor. This is called after calling the
pending callback or if error occurs while processing the pending command.
@@
-446,7
+446,7
@@
typedef void (*SilcClientPendingDestructor)(void *context);
identifier `ident'. */
void silc_client_command_pending(SilcClientConnection conn,
SilcCommand reply_cmd,
identifier `ident'. */
void silc_client_command_pending(SilcClientConnection conn,
SilcCommand reply_cmd,
- u
nsigned short
ident,
+ u
int16
ident,
SilcClientPendingDestructor destructor,
SilcCommandCb callback,
void *context);
SilcClientPendingDestructor destructor,
SilcCommandCb callback,
void *context);
@@
-474,7
+474,7
@@
int silc_client_add_private_message_key(SilcClient client,
SilcClientEntry client_entry,
char *cipher,
unsigned char *key,
SilcClientEntry client_entry,
char *cipher,
unsigned char *key,
- u
nsigned int
key_len,
+ u
int32
key_len,
int generate_key);
/* Same as above but takes the key material from the SKE key material
int generate_key);
/* Same as above but takes the key material from the SKE key material
@@
-519,12
+519,12
@@
int silc_client_del_private_message_key(SilcClient client,
SilcPrivateMessageKeys
silc_client_list_private_message_keys(SilcClient client,
SilcClientConnection conn,
SilcPrivateMessageKeys
silc_client_list_private_message_keys(SilcClient client,
SilcClientConnection conn,
- u
nsigned int
*key_count);
+ u
int32
*key_count);
/* Frees the SilcPrivateMessageKeys array returned by the function
silc_client_list_private_message_keys. */
void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
/* Frees the SilcPrivateMessageKeys array returned by the function
silc_client_list_private_message_keys. */
void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
- u
nsigned int
key_count);
+ u
int32
key_count);
/* Channel private key management (client_channel.c,
/* Channel private key management (client_channel.c,
@@
-561,7
+561,7
@@
int silc_client_add_channel_private_key(SilcClient client,
char *cipher,
char *hmac,
unsigned char *key,
char *cipher,
char *hmac,
unsigned char *key,
- u
nsigned int
key_len);
+ u
int32
key_len);
/* Removes all private keys from the `channel'. The old channel key is used
after calling this to protect the channel messages. Returns FALSE on
/* Removes all private keys from the `channel'. The old channel key is used
after calling this to protect the channel messages. Returns FALSE on
@@
-589,11
+589,11
@@
SilcChannelPrivateKey *
silc_client_list_channel_private_keys(SilcClient client,
SilcClientConnection conn,
SilcChannelEntry channel,
silc_client_list_channel_private_keys(SilcClient client,
SilcClientConnection conn,
SilcChannelEntry channel,
- u
nsigned int
*key_count);
+ u
int32
*key_count);
/* Frees the SilcChannelPrivateKey array. */
void silc_client_free_channel_private_keys(SilcChannelPrivateKey *keys,
/* Frees the SilcChannelPrivateKey array. */
void silc_client_free_channel_private_keys(SilcChannelPrivateKey *keys,
- u
nsigned int
key_count);
+ u
int32
key_count);
/* Key Agreement routines (client_keyagr.c) */
/* Key Agreement routines (client_keyagr.c) */
@@
-636,7
+636,7
@@
void silc_client_send_key_agreement(SilcClient client,
SilcClientEntry client_entry,
char *hostname,
int port,
SilcClientEntry client_entry,
char *hostname,
int port,
- u
nsigned long
timeout_secs,
+ u
int32
timeout_secs,
SilcKeyAgreementCallback completion,
void *context);
SilcKeyAgreementCallback completion,
void *context);