updates. New data types.
[silc.git] / apps / silc / silc.c
index 3ebe26a080449f33336c3349d41579ac3d522dac..fa67c0839d7b1bf270cc4cde72ded6935b895758 100644 (file)
@@ -275,6 +275,7 @@ SILC Secure Internet Live Conferencing, version %s\n",
   silc_client_config_register_ciphers(app->config);
   silc_client_config_register_pkcs(app->config);
   silc_client_config_register_hashfuncs(app->config);
+  silc_client_config_register_hmacs(app->config);
 
   /* Load public and private key */
   if (silc_client_load_keys(silc) == FALSE)
@@ -513,7 +514,7 @@ static void silc_client_clear_input(SilcClientInternal app)
 static void silc_client_process_message(SilcClientInternal app)
 {
   unsigned char *data;
-  unsigned int len;
+  uint32 len;
 
   SILC_LOG_DEBUG(("Start"));
 
@@ -522,9 +523,9 @@ static void silc_client_process_message(SilcClientInternal app)
 
   if (data[0] == '/' && data[1] != ' ') {
     /* Command */
-    unsigned int argc = 0;
+    uint32 argc = 0;
     unsigned char **argv, *tmpcmd;
-    unsigned int *argv_lens, *argv_types;
+    uint32 *argv_lens, *argv_types;
     SilcClientCommand *cmd;
     SilcClientCommandContext ctx;
 
@@ -565,8 +566,8 @@ static void silc_client_process_message(SilcClientInternal app)
       silc_print(app->client, "> %s", data);
       silc_client_send_channel_message(app->client, 
                                       app->conn,
-                                      app->conn->current_channel,
-                                      data, strlen(data), TRUE);
+                                      app->conn->current_channel, NULL,
+                                      0, data, strlen(data), TRUE);
     }
   }
 
@@ -622,9 +623,9 @@ SILC_TASK_CALLBACK(silc_client_run_commands)
 
   cs = app->config->commands;
   while(cs) {
-    unsigned int argc = 0;
+    uint32 argc = 0;
     unsigned char **argv, *tmpcmd;
-    unsigned int *argv_lens, *argv_types;
+    uint32 *argv_lens, *argv_types;
     SilcClientCommand *cmd;
     SilcClientCommandContext ctx;