app = silc_calloc(1, sizeof(*app));
/* Allocate new client */
- app->client = silc = silc_client_alloc(&ops, app);
+ app->client = silc = silc_client_alloc(&ops, app, silc_version_string);
if (!silc)
goto fail;
/* XXX Read local configuration file */
- /* Check ~/.silc directory and public and private keys */
- if (silc_client_check_silc_dir() == FALSE)
- goto fail;
-
/* Get user information */
silc->username = silc_get_username();
silc->hostname = silc_net_localhost();
silc_hmac_register_default();
}
+ /* Check ~/.silc directory and public and private keys */
+ if (silc_client_check_silc_dir() == FALSE)
+ goto fail;
+
/* Load public and private key */
if (silc_client_load_keys(silc) == FALSE)
goto fail;
static void silc_client_process_message(SilcClientInternal app)
{
unsigned char *data;
- uint32 len;
+ SilcUInt32 len;
SILC_LOG_DEBUG(("Start"));
if (data[0] == '/' && data[1] != ' ') {
/* Command */
- uint32 argc = 0;
+ SilcUInt32 argc = 0;
unsigned char **argv, *tmpcmd;
- uint32 *argv_lens, *argv_types;
+ SilcUInt32 *argv_lens, *argv_types;
SilcClientCommand *cmd;
SilcClientCommandContext ctx;
cs = app->config->commands;
while(cs) {
- uint32 argc = 0;
+ SilcUInt32 argc = 0;
unsigned char **argv, *tmpcmd;
- uint32 *argv_lens, *argv_types;
+ SilcUInt32 *argv_lens, *argv_types;
SilcClientCommand *cmd;
SilcClientCommandContext ctx;