Added silc_client_get_channel_resolve,
authorPekka Riikonen <priikone@silcnet.org>
Tue, 15 Jul 2003 15:50:14 +0000 (15:50 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 15 Jul 2003 15:50:14 +0000 (15:50 +0000)
silc_client_get_clients_by_channel to Client Library.
Added new win32 build stuff by Justin Randall.

13 files changed:
lib/silcclient/client_internal.h
lib/silcclient/client_resume.c
lib/silcclient/idlist.c
lib/silcclient/silcclient.h
win32/README [new file with mode: 0644]
win32/all.dsp [new file with mode: 0644]
win32/clean_dist.pl [new file with mode: 0644]
win32/libsilc/libsilc.def
win32/libsilc/libsilc.dsp
win32/libsilc_static/libsilc_static.dsp [new file with mode: 0644]
win32/libsilcclient/libsilcclient.def
win32/libsilcclient_static/libsilcclient_static.dsp [new file with mode: 0644]
win32/silc.dsw

index 098054804d5fc71d000d9155af996b02606cb7f5..20d05d0a1e0c9989d57a82a210931adccafe9ee9 100644 (file)
@@ -1,10 +1,10 @@
 /*
 
-  client_internal.h 
+  client_internal.h
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2001 Pekka Riikonen
+  Copyright (C) 1997 - 2001, 2003 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -31,14 +31,14 @@ typedef struct {
 
 /* Generic rekey context for connections */
 typedef struct {
-  /* Current sending encryption key, provided for re-key. The `pfs'   
+  /* Current sending encryption key, provided for re-key. The `pfs'
      is TRUE if the Perfect Forward Secrecy is performed in re-key. */
   unsigned char *send_enc_key;
   SilcUInt32 enc_key_len;
   int ske_group;
   bool pfs;
   SilcUInt32 timeout;
-  void *context;   
+  void *context;
 } *SilcClientRekey;
 
 /* Internal context for connection process. This is needed as we
@@ -54,7 +54,7 @@ typedef struct {
   void *context;
 } SilcClientInternalConnectContext;
 
-/* Structure to hold ping time information. Every PING command will 
+/* Structure to hold ping time information. Every PING command will
    add entry of this structure and is removed after reply to the ping
    as been received. */
 struct SilcClientPingStruct {
@@ -65,7 +65,7 @@ struct SilcClientPingStruct {
 
 /* Structure to hold away messages set by user. This is mainly created
    for future extensions where away messages could be set according filters
-   such as nickname and hostname. For now only one away message can 
+   such as nickname and hostname. For now only one away message can
    be set in one connection. */
 struct SilcClientAwayStruct {
   char *away;
@@ -161,7 +161,7 @@ typedef void (*SilcClientResumeSessionCallback)(SilcClient client,
 /* Macros */
 
 /* Registers generic task for file descriptor for reading from network and
-   writing to network. As being generic task the actual task is allocated 
+   writing to network. As being generic task the actual task is allocated
    only once and after that the same task applies to all registered fd's. */
 #define SILC_CLIENT_REGISTER_CONNECTION_FOR_IO(fd)     \
 do {                                                   \
@@ -176,7 +176,7 @@ do {                                                        \
 do {                                                                   \
   silc_schedule_set_listen_fd((s), (fd), SILC_TASK_READ, FALSE);       \
 } while(0)
-     
+
 #define SILC_CLIENT_SET_CONNECTION_FOR_OUTPUT(s, fd)                   \
 do {                                                                   \
   silc_schedule_set_listen_fd((s), (fd), (SILC_TASK_READ |             \
@@ -243,18 +243,18 @@ void silc_client_receive_new_id(SilcClient client,
                                SilcIDPayload idp);
 void silc_client_save_channel_key(SilcClient client,
                                  SilcClientConnection conn,
-                                 SilcBuffer key_payload, 
+                                 SilcBuffer key_payload,
                                  SilcChannelEntry channel);
 void silc_client_receive_channel_key(SilcClient client,
                                     SilcSocketConnection sock,
                                     SilcBuffer packet);
-void silc_client_channel_message(SilcClient client, 
-                                SilcSocketConnection sock, 
+void silc_client_channel_message(SilcClient client,
+                                SilcSocketConnection sock,
                                 SilcPacketContext *packet);
 void silc_client_remove_from_channels(SilcClient client,
                                      SilcClientConnection conn,
                                      SilcClientEntry client_entry);
-void silc_client_replace_from_channels(SilcClient client, 
+void silc_client_replace_from_channels(SilcClient client,
                                       SilcClientConnection conn,
                                       SilcClientEntry old,
                                       SilcClientEntry newclient);
@@ -267,8 +267,8 @@ void silc_client_key_agreement(SilcClient client,
 void silc_client_notify_by_server(SilcClient client,
                                  SilcSocketConnection sock,
                                  SilcPacketContext *packet);
-void silc_client_private_message(SilcClient client, 
-                                SilcSocketConnection sock, 
+void silc_client_private_message(SilcClient client,
+                                SilcSocketConnection sock,
                                 SilcPacketContext *packet);
 void silc_client_connection_auth_request(SilcClient client,
                                         SilcSocketConnection sock,
@@ -289,6 +289,8 @@ void silc_client_resume_session(SilcClient client,
 SilcBuffer silc_client_attributes_process(SilcClient client,
                                          SilcSocketConnection sock,
                                          SilcDList attrs);
+void silc_client_packet_queue_purge(SilcClient client,
+                                   SilcSocketConnection sock);
 SILC_TASK_CALLBACK_GLOBAL(silc_client_rekey_callback);
 
 #endif
index 5f1cced0181e16ba2a961337738572356b06ea3b..02c460dae33b9064715ada6e115189e67e92aa36 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2002 Pekka Riikonen
+  Copyright (C) 2002, 2003 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -99,7 +99,7 @@ SilcBuffer silc_client_get_detach_data(SilcClient client,
 /* Processes the detachment data. This creates channels and other
    stuff according the data found in the the connection parameters.
    This doesn't actually resolve any detailed information from the
-   server.  To do that call silc_client_resume_session function. 
+   server.  To do that call silc_client_resume_session function.
    This returns the old detached session client ID. */
 
 bool silc_client_process_detach_data(SilcClient client,
@@ -114,14 +114,14 @@ bool silc_client_process_detach_data(SilcClient client,
   SILC_LOG_DEBUG(("Start"));
 
   silc_free(conn->nickname);
-  silc_buffer_set(&detach, conn->internal->params.detach_data, 
+  silc_buffer_set(&detach, conn->internal->params.detach_data,
                  conn->internal->params.detach_data_len);
 
   SILC_LOG_HEXDUMP(("Detach data"), detach.data, detach.len);
 
   /* Take the old client ID from the detachment data */
   len = silc_buffer_unformat(&detach,
-                            SILC_STR_UI16_NSTRING_ALLOC(&conn->nickname, 
+                            SILC_STR_UI16_NSTRING_ALLOC(&conn->nickname,
                                                         NULL),
                             SILC_STR_UI16_NSTRING_ALLOC(old_id, old_id_len),
                             SILC_STR_UI_INT(NULL),
@@ -212,7 +212,7 @@ SILC_TASK_CALLBACK(silc_client_resume_call_completion)
   SILC_LOG_DEBUG(("Session completed"));
 
   for (i = 0; i < session->cmd_idents_count; i++)
-    silc_client_command_pending_del(session->conn, SILC_COMMAND_IDENTIFY, 
+    silc_client_command_pending_del(session->conn, SILC_COMMAND_IDENTIFY,
                                    session->cmd_idents[i]);
   silc_free(session->cmd_idents);
 
@@ -294,7 +294,7 @@ void silc_client_resume_session(SilcClient client,
       silc_client_command_register(client, SILC_COMMAND_IDENTIFY, NULL, NULL,
                                   silc_client_command_reply_resume_special,
                                   0, ++conn->cmd_ident);
-      silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, 
+      silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY,
                                  conn->cmd_ident,
                                  silc_client_command_resume_identify,
                                  session);
@@ -302,7 +302,7 @@ void silc_client_resume_session(SilcClient client,
       tmp = silc_command_payload_encode(SILC_COMMAND_IDENTIFY,
                                        res_argc, res_argv, res_argv_lens,
                                        res_argv_types, conn->cmd_ident);
-      silc_client_packet_send(client, conn->sock, SILC_PACKET_COMMAND, 
+      silc_client_packet_send(client, conn->sock, SILC_PACKET_COMMAND,
                              NULL, 0, NULL, NULL, tmp->data, tmp->len, TRUE);
 
       session->cmd_idents = silc_realloc(session->cmd_idents,
@@ -402,7 +402,7 @@ SILC_CLIENT_CMD_FUNC(resume_identify)
     return;
 
   /* Unregister this command reply */
-  silc_client_command_unregister(client, SILC_COMMAND_IDENTIFY, NULL, 
+  silc_client_command_unregister(client, SILC_COMMAND_IDENTIFY, NULL,
                                 silc_client_command_reply_resume,
                                 cmd->ident);
   return;
@@ -429,7 +429,7 @@ SILC_CLIENT_CMD_FUNC(resume_cmode)
   SILC_LOG_DEBUG(("Start"));
 
   /* Unregister this command reply */
-  silc_client_command_unregister(client, SILC_COMMAND_CMODE, NULL, 
+  silc_client_command_unregister(client, SILC_COMMAND_CMODE, NULL,
                                 silc_client_command_reply_resume,
                                 cmd->ident);
 
@@ -492,7 +492,7 @@ SILC_CLIENT_CMD_FUNC(resume_users)
   SILC_LOG_DEBUG(("Start"));
 
   /* Unregister this command reply */
-  silc_client_command_unregister(client, SILC_COMMAND_USERS, NULL, 
+  silc_client_command_unregister(client, SILC_COMMAND_USERS, NULL,
                                 silc_client_command_reply_users_i,
                                 cmd->ident);
 
@@ -544,8 +544,8 @@ SILC_CLIENT_CMD_FUNC(resume_users)
   client->internal->ops->command_reply(client, conn, cmd->payload, TRUE,
                                       SILC_COMMAND_JOIN, cmd->status,
                                       channel->channel_name, channel,
-                                      channel->mode, 0, 
-                                      NULL, NULL, NULL, NULL, 
+                                      channel->mode, 0,
+                                      NULL, NULL, NULL, NULL,
                                       channel->hmac, list_count,
                                       &client_id_list, client_mode_list);
 
index 6c015ef527f0758c594d0b751a40403cd3e0097d..e1c9bc3d6c02a42d3adf6c9e26313846a85661fd 100644 (file)
@@ -1,10 +1,10 @@
 /*
 
-  idlist.c 
+  idlist.c
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2001 - 2002 Pekka Riikonen
+  Copyright (C) 2001 - 2003 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -87,7 +87,7 @@ SilcClientEntry *silc_client_get_clients_local(SilcClient client,
          continue;
        }
       }
-      
+
       clients[i++] = id_cache->context;
       found = TRUE;
       if (!silc_idcache_list_next(list, &id_cache))
@@ -146,7 +146,7 @@ SILC_CLIENT_CMD_FUNC(get_client_callback)
   silc_free(i);
 }
 
-/* Finds client entry or entries by the `nickname' and `server'. The 
+/* Finds client entry or entries by the `nickname' and `server'. The
    completion callback will be called when the client entries has been found.
 
    Note: this function is always asynchronous and resolves the client
@@ -195,13 +195,13 @@ void silc_client_get_clients(SilcClient client,
                               ++conn->cmd_ident);
 
   /* Send the command */
-  silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY, 
-                          conn->cmd_ident, 1, 1, userhost, 
+  silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY,
+                          conn->cmd_ident, 1, 1, userhost,
                           strlen(userhost));
 
   /* Add pending callback */
   silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, conn->cmd_ident,
-                             silc_client_command_get_client_callback, 
+                             silc_client_command_get_client_callback,
                              (void *)i);
 
   silc_free(userhost);
@@ -232,14 +232,14 @@ SilcClientEntry silc_idlist_get_client(SilcClient client,
 
     if (query) {
       SILC_LOG_DEBUG(("Requesting Client ID from server"));
-      
+
       /* Register our own command reply for this command */
       silc_client_command_register(client, SILC_COMMAND_IDENTIFY, NULL, NULL,
                                   silc_client_command_reply_identify_i, 0,
                                   ++conn->cmd_ident);
 
       /* Send the command */
-      silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY, 
+      silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY,
                               conn->cmd_ident, 1, 1, nickname,
                               strlen(nickname));
 
@@ -287,7 +287,6 @@ SilcClientEntry silc_idlist_get_client(SilcClient client,
   return entry;
 }
 
-
 typedef struct {
   SilcClient client;
   SilcClientConnection conn;
@@ -318,6 +317,8 @@ SILC_CLIENT_CMD_FUNC(get_clients_list_callback)
 
   SILC_LOG_DEBUG(("Resolved all clients"));
 
+  clients = silc_calloc(i->list_count, sizeof(*clients));
+
   for (c = 0; c < i->list_count; c++) {
     SilcUInt16 idp_len;
     SilcClientID *client_id;
@@ -332,13 +333,11 @@ SILC_CLIENT_CMD_FUNC(get_clients_list_callback)
     }
 
     /* Get the client entry */
-    if (silc_idcache_find_by_id_one_ext(i->conn->internal->client_cache, 
-                                       (void *)client_id, 
-                                       NULL, NULL, 
+    if (silc_idcache_find_by_id_one_ext(i->conn->internal->client_cache,
+                                       (void *)client_id,
+                                       NULL, NULL,
                                        silc_hash_client_id_compare, NULL,
                                        &id_cache)) {
-      clients = silc_realloc(clients, sizeof(*clients) * 
-                            (clients_count + 1));
       clients[clients_count] = (SilcClientEntry)id_cache->context;
       clients_count++;
       found = TRUE;
@@ -411,7 +410,7 @@ void silc_client_get_clients_by_list(SilcClient client,
     /* Check if we have this client cached already. */
     ret =
       silc_idcache_find_by_id_one_ext(conn->internal->client_cache,
-                                     (void *)client_id, NULL, NULL, 
+                                     (void *)client_id, NULL, NULL,
                                      silc_hash_client_id_compare, NULL,
                                      &id_cache);
 
@@ -424,9 +423,9 @@ void silc_client_get_clients_by_list(SilcClient client,
        if (entry->status & SILC_CLIENT_STATUS_RESOLVING) {
          /* Attach to this resolving and wait until it finishes */
          silc_client_command_pending(
-                           conn, SILC_COMMAND_NONE, 
+                           conn, SILC_COMMAND_NONE,
                            entry->resolve_cmd_ident,
-                           silc_client_command_get_clients_list_callback, 
+                           silc_client_command_get_clients_list_callback,
                            (void *)in);
          wait_res = TRUE;
          in->res_count++;
@@ -458,7 +457,7 @@ void silc_client_get_clients_by_list(SilcClient client,
     silc_buffer_pull(client_id_list, idp_len);
   }
 
-  silc_buffer_push(client_id_list, client_id_list->data - 
+  silc_buffer_push(client_id_list, client_id_list->data -
                   client_id_list->head);
 
   /* Query the client information from server if the list included clients
@@ -470,7 +469,7 @@ void silc_client_get_clients_by_list(SilcClient client,
     res_cmd = silc_command_payload_encode(SILC_COMMAND_IDENTIFY,
                                          res_argc, res_argv, res_argv_lens,
                                          res_argv_types, ++conn->cmd_ident);
-    silc_client_packet_send(client, conn->sock, SILC_PACKET_COMMAND, 
+    silc_client_packet_send(client, conn->sock, SILC_PACKET_COMMAND,
                            NULL, 0, NULL, NULL, res_cmd->data, res_cmd->len,
                            TRUE);
 
@@ -481,7 +480,7 @@ void silc_client_get_clients_by_list(SilcClient client,
 
     /* Process the applications request after reply has been received  */
     silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, conn->cmd_ident,
-                               silc_client_command_get_clients_list_callback, 
+                               silc_client_command_get_clients_list_callback,
                                (void *)in);
     in->res_count++;
 
@@ -499,6 +498,169 @@ void silc_client_get_clients_by_list(SilcClient client,
   silc_client_command_get_clients_list_callback((void *)in, NULL);
 }
 
+typedef struct {
+  SilcClient client;
+  SilcClientConnection conn;
+  SilcChannelID channel_id;
+  SilcGetClientCallback completion;
+  void *context;
+  int res_count;
+} *GetClientsByChannelInternal;
+
+SILC_CLIENT_CMD_FUNC(get_clients_by_channel_cb)
+{
+  GetClientsByChannelInternal i = context;
+  SilcClientEntry *clients = NULL;
+  SilcUInt32 clients_count = 0;
+  bool found = FALSE;
+  SilcChannelEntry channel;
+  SilcHashTableList htl;
+  SilcChannelUser chu;
+
+  channel = silc_client_get_channel_by_id(i->client, i->conn, &i->channel_id);
+  if (channel && !silc_hash_table_count(channel->user_list)) {
+    clients = silc_calloc(silc_hash_table_count(channel->user_list),
+                         sizeof(*clients));
+    silc_hash_table_list(channel->user_list, &htl);
+    while (silc_hash_table_get(&htl, NULL, (void **)&chu))
+      clients[clients_count++] = chu->client;
+    silc_hash_table_list_reset(&htl);
+    found = TRUE;
+  }
+
+  if (found) {
+    i->completion(i->client, i->conn, clients, clients_count, i->context);
+    silc_free(clients);
+  } else {
+    i->completion(i->client, i->conn, NULL, 0, i->context);
+  }
+
+  silc_free(i);
+}
+
+/* Gets client entries by the channel entry indicated by `channel'.  Thus,
+   it resolves the clients currently on that channel. */
+
+void silc_client_get_clients_by_channel(SilcClient client,
+                                       SilcClientConnection conn,
+                                       SilcChannelEntry channel,
+                                       SilcGetClientCallback completion,
+                                       void *context)
+{
+  GetClientsByChannelInternal in;
+  SilcHashTableList htl;
+  SilcChannelUser chu;
+  SilcClientEntry entry;
+  unsigned char **res_argv = NULL;
+  SilcUInt32 *res_argv_lens = NULL, *res_argv_types = NULL, res_argc = 0;
+  SilcBuffer idp;
+  bool wait_res = FALSE;
+
+  assert(client && conn && channel);
+
+  SILC_LOG_DEBUG(("Start"));
+
+  in = silc_calloc(1, sizeof(*in));
+  in->client = client;
+  in->conn = conn;
+  in->channel_id = *channel->id;
+  in->completion = completion;
+  in->context = context;
+
+  /* If user list does not exist, send USERS command. */
+  if (!channel->user_list || !silc_hash_table_count(channel->user_list)) {
+    SILC_LOG_DEBUG(("Sending USERS"));
+    silc_client_command_register(client, SILC_COMMAND_USERS, NULL, NULL,
+                                silc_client_command_reply_users_i, 0,
+                                ++conn->cmd_ident);
+    silc_client_command_send(client, conn, SILC_COMMAND_USERS,
+                            conn->cmd_ident, 1, 2, channel->channel_name,
+                            strlen(channel->channel_name));
+    silc_client_command_pending(conn, SILC_COMMAND_USERS, conn->cmd_ident,
+                               silc_client_command_get_clients_by_channel_cb,
+                               in);
+    return;
+  }
+
+  silc_hash_table_list(channel->user_list, &htl);
+  while (silc_hash_table_get(&htl, NULL, (void **)&chu)) {
+    entry = chu->client;
+
+    /* If the entry has incomplete info, then resolve it from the server. */
+    if (!entry->nickname || !entry->realname) {
+      if (entry->status & SILC_CLIENT_STATUS_RESOLVING) {
+       /* Attach to this resolving and wait until it finishes */
+       silc_client_command_pending(
+                           conn, SILC_COMMAND_NONE,
+                           entry->resolve_cmd_ident,
+                           silc_client_command_get_clients_by_channel_cb,
+                           (void *)in);
+       wait_res = TRUE;
+       in->res_count++;
+       continue;
+      }
+      entry->status |= SILC_CLIENT_STATUS_RESOLVING;
+      entry->resolve_cmd_ident = conn->cmd_ident + 1;
+
+      idp = silc_id_payload_encode(entry->id, SILC_ID_CLIENT);
+
+      /* No we don't have it, query it from the server. Assemble argument
+        table that will be sent for the WHOIS command later. */
+      res_argv = silc_realloc(res_argv, sizeof(*res_argv) *
+                             (res_argc + 1));
+      res_argv_lens = silc_realloc(res_argv_lens, sizeof(*res_argv_lens) *
+                                  (res_argc + 1));
+      res_argv_types = silc_realloc(res_argv_types, sizeof(*res_argv_types) *
+                                   (res_argc + 1));
+      res_argv[res_argc] = silc_memdup(idp->data, idp->len);
+      res_argv_lens[res_argc] = idp->len;
+      res_argv_types[res_argc] = res_argc + 4;
+      res_argc++;
+
+      silc_buffer_free(idp);
+    }
+  }
+  silc_hash_table_list_reset(&htl);
+
+  /* Query the client information from server if the list included clients
+     that we don't know about. */
+  if (res_argc) {
+    SilcBuffer res_cmd;
+
+    /* Send the WHOIS command to server */
+    res_cmd = silc_command_payload_encode(SILC_COMMAND_WHOIS,
+                                         res_argc, res_argv, res_argv_lens,
+                                         res_argv_types, ++conn->cmd_ident);
+    silc_client_packet_send(client, conn->sock, SILC_PACKET_COMMAND,
+                           NULL, 0, NULL, NULL, res_cmd->data, res_cmd->len,
+                           TRUE);
+
+    /* Register our own command reply for this command */
+    silc_client_command_register(client, SILC_COMMAND_WHOIS, NULL, NULL,
+                                silc_client_command_reply_whois_i, 0,
+                                conn->cmd_ident);
+
+    /* Process the applications request after reply has been received  */
+    silc_client_command_pending(
+                          conn, SILC_COMMAND_WHOIS, conn->cmd_ident,
+                          silc_client_command_get_clients_by_channel_cb,
+                          (void *)in);
+    in->res_count++;
+
+    silc_buffer_free(res_cmd);
+    silc_free(res_argv);
+    silc_free(res_argv_lens);
+    silc_free(res_argv_types);
+    return;
+  }
+
+  if (wait_res)
+    return;
+
+  /* We have the clients in cache, get them and call the completion */
+  silc_client_command_get_clients_by_channel_cb((void *)in, NULL);
+}
+
 /* Finds entry for client by the client's ID. Returns the entry or NULL
    if the entry was not found. */
 
@@ -512,12 +674,12 @@ SilcClientEntry silc_client_get_client_by_id(SilcClient client,
   if (!client_id)
     return NULL;
 
-  SILC_LOG_DEBUG(("Finding client by ID (%s)", 
+  SILC_LOG_DEBUG(("Finding client by ID (%s)",
                  silc_id_render(client_id, SILC_ID_CLIENT)));
 
   /* Find ID from cache */
   if (!silc_idcache_find_by_id_one_ext(conn->internal->client_cache,
-                                      (void *)client_id, NULL, NULL, 
+                                      (void *)client_id, NULL, NULL,
                                       silc_hash_client_id_compare, NULL,
                                       &id_cache))
     return NULL;
@@ -577,7 +739,7 @@ void silc_client_get_client_by_id_resolve(SilcClient client,
   i->client_id = silc_id_dup(client_id, SILC_ID_CLIENT);
   i->completion = completion;
   i->context = context;
-      
+
   /* Register our own command reply for this command */
   silc_client_command_register(client, SILC_COMMAND_WHOIS, NULL, NULL,
                               silc_client_command_reply_whois_i, 0,
@@ -593,7 +755,7 @@ void silc_client_get_client_by_id_resolve(SilcClient client,
 
   /* Add pending callback */
   silc_client_command_pending(conn, SILC_COMMAND_WHOIS, conn->cmd_ident,
-                             silc_client_command_get_client_by_id_callback, 
+                             silc_client_command_get_client_by_id_callback,
                              (void *)i);
 }
 
@@ -610,7 +772,7 @@ void silc_client_get_client_by_id_resolve(SilcClient client,
 
 SilcClientEntry
 silc_client_add_client(SilcClient client, SilcClientConnection conn,
-                      char *nickname, char *username, 
+                      char *nickname, char *username,
                       char *userinfo, SilcClientID *id, SilcUInt32 mode)
 {
   SilcClientEntry client_entry;
@@ -623,7 +785,7 @@ silc_client_add_client(SilcClient client, SilcClientConnection conn,
   client_entry->id = id;
   client_entry->valid = TRUE;
   silc_parse_userfqdn(nickname, &nick, &client_entry->server);
-  silc_parse_userfqdn(username, &client_entry->username, 
+  silc_parse_userfqdn(username, &client_entry->username,
                      &client_entry->hostname);
   if (userinfo)
     client_entry->realname = strdup(userinfo);
@@ -635,9 +797,9 @@ silc_client_add_client(SilcClient client, SilcClientConnection conn,
 
   /* Format the nickname */
   silc_client_nickname_format(client, conn, client_entry);
-  
+
   /* Add client to cache, the non-formatted nickname is saved to cache */
-  if (!silc_idcache_add(conn->internal->client_cache, nick, client_entry->id, 
+  if (!silc_idcache_add(conn->internal->client_cache, nick, client_entry->id,
                        (void *)client_entry, 0, NULL)) {
     silc_free(client_entry->nickname);
     silc_free(client_entry->username);
@@ -685,14 +847,14 @@ void silc_client_update_client(SilcClient client,
   if (nick) {
     /* Remove the old cache entry and create a new one */
     silc_idcache_del_by_context(conn->internal->client_cache, client_entry);
-    silc_idcache_add(conn->internal->client_cache, nick, client_entry->id, 
+    silc_idcache_add(conn->internal->client_cache, nick, client_entry->id,
                     client_entry, 0, NULL);
   }
 }
 
 /* Deletes the client entry and frees all memory. */
 
-void silc_client_del_client_entry(SilcClient client, 
+void silc_client_del_client_entry(SilcClient client,
                                  SilcClientConnection conn,
                                  SilcClientEntry client_entry)
 {
@@ -739,7 +901,7 @@ bool silc_client_del_client(SilcClient client, SilcClientConnection conn,
 SilcChannelEntry silc_client_add_channel(SilcClient client,
                                         SilcClientConnection conn,
                                         const char *channel_name,
-                                        SilcUInt32 mode, 
+                                        SilcUInt32 mode,
                                         SilcChannelID *channel_id)
 {
   SilcChannelEntry channel;
@@ -754,7 +916,7 @@ SilcChannelEntry silc_client_add_channel(SilcClient client,
                                             NULL, NULL, NULL, TRUE);
 
   /* Put it to the ID cache */
-  if (!silc_idcache_add(conn->internal->channel_cache, channel->channel_name, 
+  if (!silc_idcache_add(conn->internal->channel_cache, channel->channel_name,
                        (void *)channel->id, (void *)channel, 0, NULL)) {
     silc_free(channel->channel_name);
     silc_hash_table_free(channel->user_list);
@@ -792,7 +954,7 @@ bool silc_client_del_channel(SilcClient client, SilcClientConnection conn,
   SILC_LOG_DEBUG(("Start"));
 
   /* Free all client entrys from the users list. The silc_hash_table_free
-     will free all the entries so they are not freed at the foreach 
+     will free all the entries so they are not freed at the foreach
      callback. */
   silc_hash_table_foreach(channel->user_list, silc_client_del_channel_foreach,
                          NULL);
@@ -827,16 +989,16 @@ bool silc_client_replace_channel_id(SilcClient client,
   if (!new_id)
     return FALSE;
 
-  SILC_LOG_DEBUG(("Old Channel ID id(%s)", 
+  SILC_LOG_DEBUG(("Old Channel ID id(%s)",
                  silc_id_render(channel->id, SILC_ID_CHANNEL)));
-  SILC_LOG_DEBUG(("New Channel ID id(%s)", 
+  SILC_LOG_DEBUG(("New Channel ID id(%s)",
                  silc_id_render(new_id, SILC_ID_CHANNEL)));
 
   silc_idcache_del_by_id(conn->internal->channel_cache, channel->id);
   silc_free(channel->id);
   channel->id = new_id;
   return silc_idcache_add(conn->internal->channel_cache,
-                         channel->channel_name, 
+                         channel->channel_name,
                          (void *)channel->id, (void *)channel, 0, NULL);
 
 }
@@ -858,7 +1020,7 @@ SilcChannelEntry silc_client_get_channel(SilcClient client,
 
   SILC_LOG_DEBUG(("Start"));
 
-  if (!silc_idcache_find_by_name_one(conn->internal->channel_cache, channel, 
+  if (!silc_idcache_find_by_name_one(conn->internal->channel_cache, channel,
                                     &id_cache))
     return NULL;
 
@@ -886,7 +1048,7 @@ SilcChannelEntry silc_client_get_channel_by_id(SilcClient client,
 
   SILC_LOG_DEBUG(("Start"));
 
-  if (!silc_idcache_find_by_id_one(conn->internal->channel_cache, channel_id, 
+  if (!silc_idcache_find_by_id_one(conn->internal->channel_cache, channel_id,
                                   &id_cache))
     return NULL;
 
@@ -900,27 +1062,85 @@ SilcChannelEntry silc_client_get_channel_by_id(SilcClient client,
 typedef struct {
   SilcClient client;
   SilcClientConnection conn;
-  SilcChannelID *channel_id;
+  union {
+    SilcChannelID *channel_id;
+    char *channel_name;
+  } u;
   SilcGetChannelCallback completion;
   void *context;
-} *GetChannelByIDInternal;
+} *GetChannelInternal;
+
+SILC_CLIENT_CMD_FUNC(get_channel_resolve_callback)
+{
+  GetChannelInternal i = (GetChannelInternal)context;
+  SilcChannelEntry entry;
+
+  SILC_LOG_DEBUG(("Start"));
+
+  /* Get the channel */
+  entry = silc_client_get_channel(i->client, i->conn, i->u.channel_name);
+  if (entry) {
+    i->completion(i->client, i->conn, &entry, 1, i->context);
+  } else {
+    i->completion(i->client, i->conn, NULL, 0, i->context);
+  }
+
+  silc_free(i->u.channel_name);
+  silc_free(i);
+}
+
+/* Resolves channel entry from the server by the channel name. */
+
+void silc_client_get_channel_resolve(SilcClient client,
+                                    SilcClientConnection conn,
+                                    char *channel_name,
+                                    SilcGetChannelCallback completion,
+                                    void *context)
+{
+  GetChannelInternal i = silc_calloc(1, sizeof(*i));
+
+  assert(client && conn && channel_name);
+
+  SILC_LOG_DEBUG(("Start"));
+
+  i->client = client;
+  i->conn = conn;
+  i->u.channel_name = strdup(channel_name);
+  i->completion = completion;
+  i->context = context;
+
+  /* Register our own command reply for this command */
+  silc_client_command_register(client, SILC_COMMAND_IDENTIFY, NULL, NULL,
+                              silc_client_command_reply_identify_i, 0,
+                              ++conn->cmd_ident);
+
+  /* Send the command */
+  silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY,
+                          conn->cmd_ident,
+                          1, 3, channel_name, strlen(channel_name));
+
+  /* Add pending callback */
+  silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, conn->cmd_ident,
+                             silc_client_command_get_channel_resolve_callback,
+                             (void *)i);
+}
 
 SILC_CLIENT_CMD_FUNC(get_channel_by_id_callback)
 {
-  GetChannelByIDInternal i = (GetChannelByIDInternal)context;
+  GetChannelInternal i = (GetChannelInternal)context;
   SilcChannelEntry entry;
 
   SILC_LOG_DEBUG(("Start"));
 
   /* Get the channel */
-  entry = silc_client_get_channel_by_id(i->client, i->conn, i->channel_id);
+  entry = silc_client_get_channel_by_id(i->client, i->conn, i->u.channel_id);
   if (entry) {
     i->completion(i->client, i->conn, &entry, 1, i->context);
   } else {
     i->completion(i->client, i->conn, NULL, 0, i->context);
   }
 
-  silc_free(i->channel_id);
+  silc_free(i->u.channel_id);
   silc_free(i);
 }
 
@@ -933,7 +1153,7 @@ void silc_client_get_channel_by_id_resolve(SilcClient client,
                                           void *context)
 {
   SilcBuffer idp;
-  GetChannelByIDInternal i = silc_calloc(1, sizeof(*i));
+  GetChannelInternal i = silc_calloc(1, sizeof(*i));
 
   assert(client && conn && channel_id);
 
@@ -941,10 +1161,10 @@ void silc_client_get_channel_by_id_resolve(SilcClient client,
 
   i->client = client;
   i->conn = conn;
-  i->channel_id = silc_id_dup(channel_id, SILC_ID_CHANNEL);
+  i->u.channel_id = silc_id_dup(channel_id, SILC_ID_CHANNEL);
   i->completion = completion;
   i->context = context;
-      
+
   /* Register our own command reply for this command */
   silc_client_command_register(client, SILC_COMMAND_IDENTIFY, NULL, NULL,
                               silc_client_command_reply_identify_i, 0,
@@ -952,14 +1172,14 @@ void silc_client_get_channel_by_id_resolve(SilcClient client,
 
   /* Send the command */
   idp = silc_id_payload_encode(channel_id, SILC_ID_CHANNEL);
-  silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY, 
+  silc_client_command_send(client, conn, SILC_COMMAND_IDENTIFY,
                           conn->cmd_ident,
                           1, 5, idp->data, idp->len);
   silc_buffer_free(idp);
 
   /* Add pending callback */
   silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, conn->cmd_ident,
-                             silc_client_command_get_channel_by_id_callback, 
+                             silc_client_command_get_channel_by_id_callback,
                              (void *)i);
 }
 
@@ -1093,7 +1313,7 @@ void silc_client_update_server(SilcClient client,
    nickname and replace the old nickname in the client entry. If the
    format string is not specified then this function has no effect. */
 
-void silc_client_nickname_format(SilcClient client, 
+void silc_client_nickname_format(SilcClient client,
                                 SilcClientConnection conn,
                                 SilcClientEntry client_entry)
 {
index 5750bb203c4239aee49d1e6f6becab9333080e2b..a0474981adab4893a885e9e5302e13b3d74b6fee 100644 (file)
@@ -1,10 +1,10 @@
 /*
 
-  silcclient.h 
+  silcclient.h
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2000 - 2002 Pekka Riikonen
+  Copyright (C) 2000 - 2003 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ struct SilcClientStruct {
   char *username;               /* Username, MUST be set by application */
   char *hostname;               /* hostname, MUST be set by application */
   char *realname;               /* Real name, MUST be set be application */
-  
+
   SilcPublicKey public_key;     /* Public key of user, set by application */
   SilcPrivateKey private_key;   /* Private key of user, set by application */
   SilcPKCS pkcs;                /* PKCS allocated by application */
@@ -93,16 +93,16 @@ struct SilcClientStruct {
 
   /* Scheduler, set by library.  Application may use this pointer. */
   SilcSchedule schedule;
-  
+
   /* Random Number Generator. Application should use this as its primary
      random number generator. */
   SilcRng rng;
-  
+
   /* Application specific user data pointer. Client library does not
      touch this.  This the context sent as argument to silc_client_alloc.
      Application can use it freely. */
   void *application;
-     
+
   /* Generic hash context for application usage */
   SilcHash md5hash;
   SilcHash sha1hash;
@@ -110,7 +110,7 @@ struct SilcClientStruct {
   /* Internal data for client library. Application cannot access this
      data at all. */
   SilcClientInternal internal;
-};  
+};
 /***/
 
 /****s* silcclient/SilcClientAPI/SilcClientConnection
@@ -218,7 +218,7 @@ struct SilcClientEntryStruct {
   SilcHmac hmac_send;          /* Private mesage key HMAC for sending */
   SilcHmac hmac_receive;       /* Private mesage key HMAC for receiving */
   unsigned char *key;          /* Set only if application provided the
-                                  key material. NULL if the library 
+                                  key material. NULL if the library
                                   generated the key. */
   SilcUInt32 key_len;          /* Key length */
   SilcClientKeyAgreement ke;   /* Current key agreement context or NULL */
@@ -309,7 +309,7 @@ struct SilcServerEntryStruct {
  * DESCRIPTION
  *
  *    Key agreement status types indicating the status of the key
- *    agreement protocol.  These types are returned to the application 
+ *    agreement protocol.  These types are returned to the application
  *    in the SilcKeyAgreementCallback callback function.
  *
  * SOURCE
@@ -442,11 +442,11 @@ typedef void (*SilcVerifyPublicKey)(bool success, void *context);
  *
  * SYNOPSIS
  *
- *    typedef void (*SilcGetAuthMeth)(bool success, 
+ *    typedef void (*SilcGetAuthMeth)(bool success,
  *                                    SilcProtocolAuthMeth auth_meth,
  *                                    const unsigned char *auth_data,
  *                                    SilcUInt32 auth_data_len, void *context);
- * 
+ *
  * DESCRIPTION
  *
  *    Authentication method resolving callback. This is called by the
@@ -459,7 +459,7 @@ typedef void (*SilcVerifyPublicKey)(bool success, void *context);
  *    context sent to the get_auth_method client operation.
  *
  ***/
-typedef void (*SilcGetAuthMeth)(bool success, 
+typedef void (*SilcGetAuthMeth)(bool success,
                                SilcProtocolAuthMeth auth_meth,
                                const unsigned char *auth_data,
                                SilcUInt32 auth_data_len, void *context);
@@ -524,29 +524,29 @@ typedef enum {
  */
 typedef struct {
   /* Message sent to the application by library. `conn' associates the
-     message to a specific connection.  `conn', however, may be NULL. 
+     message to a specific connection.  `conn', however, may be NULL.
      The `type' indicates the type of the message sent by the library.
      The application can for example filter the message according the
      type.  The variable argument list is arguments to the formatted
      message that `msg' may be. */
-  void (*say)(SilcClient client, SilcClientConnection conn, 
+  void (*say)(SilcClient client, SilcClientConnection conn,
              SilcClientMessageType type, char *msg, ...);
 
-  /* Message for a channel. The `sender' is the sender of the message 
-     The `channel' is the channel. The `message' is the message.  Note 
-     that `message' maybe NULL.  The `flags' indicates message flags 
+  /* Message for a channel. The `sender' is the sender of the message
+     The `channel' is the channel. The `message' is the message.  Note
+     that `message' maybe NULL.  The `flags' indicates message flags
      and it is used to determine how the message can be interpreted
      (like it may tell the message is multimedia message). */
-  void (*channel_message)(SilcClient client, SilcClientConnection conn, 
-                         SilcClientEntry sender, SilcChannelEntry channel, 
+  void (*channel_message)(SilcClient client, SilcClientConnection conn,
+                         SilcClientEntry sender, SilcChannelEntry channel,
                          SilcMessagePayload payload, SilcMessageFlags flags,
                          const unsigned char *message,
                          SilcUInt32 message_len);
 
   /* Private message to the client. The `sender' is the sender of the
-     message. The message is `message'and maybe NULL.  The `flags' 
-     indicates message flags  and it is used to determine how the message 
-     can be interpreted (like it may tell the message is multimedia 
+     message. The message is `message'and maybe NULL.  The `flags'
+     indicates message flags  and it is used to determine how the message
+     can be interpreted (like it may tell the message is multimedia
      message). */
   void (*private_message)(SilcClient client, SilcClientConnection conn,
                          SilcClientEntry sender, SilcMessagePayload payload,
@@ -562,7 +562,7 @@ typedef struct {
      for channel the channel entry is sent to application (even if server
      does not send it because client library gets the channel entry from
      the Channel ID in the packet's header). */
-  void (*notify)(SilcClient client, SilcClientConnection conn, 
+  void (*notify)(SilcClient client, SilcClientConnection conn,
                 SilcNotifyType type, ...);
 
   /* Command handler. This function is called always in the command function.
@@ -573,7 +573,7 @@ typedef struct {
      noted that this is not reply from server. This is merely called just
      after application has called the command. Just to tell application
      that the command really was processed. */
-  void (*command)(SilcClient client, SilcClientConnection conn, 
+  void (*command)(SilcClient client, SilcClientConnection conn,
                  SilcClientCommandContext cmd_context, bool success,
                  SilcCommand command, SilcStatus status);
 
@@ -581,8 +581,8 @@ typedef struct {
      function. If error occurs it will be called as well. Normal scenario
      is that it will be called after the received command data has been parsed
      and processed. The function is used to pass the received command data to
-     the application. 
-     
+     the application.
+
      `conn' is the associated client connection. `cmd_payload' is the command
      payload data received from server and it can be ignored. It is provided
      if the application would like to re-parse the received command data,
@@ -594,10 +594,10 @@ typedef struct {
      command defines the number and type of arguments it passes to the
      application (on error they are not sent).
 
-     The arguments are sent in the same order as servers sends them.  The 
-     arguments are same as received from the server except for ID's.  If 
-     ID is received application receives the corresponding entry to the 
-     ID. For example, if Client ID is receives application receives 
+     The arguments are sent in the same order as servers sends them.  The
+     arguments are same as received from the server except for ID's.  If
+     ID is received application receives the corresponding entry to the
+     ID. For example, if Client ID is receives application receives
      SilcClientEntry. */
   void (*command_reply)(SilcClient client, SilcClientConnection conn,
                        SilcCommandPayload cmd_payload, bool success,
@@ -630,11 +630,11 @@ typedef struct {
 
   /* Verifies received public key. The `conn_type' indicates which entity
      (server, client etc.) has sent the public key. If user decides to trust
-     the application may save the key as trusted public key for later 
-     use. The `completion' must be called after the public key has been 
+     the application may save the key as trusted public key for later
+     use. The `completion' must be called after the public key has been
      verified. */
   void (*verify_public_key)(SilcClient client, SilcClientConnection conn,
-                           SilcSocketType conn_type, unsigned char *pk, 
+                           SilcSocketType conn_type, unsigned char *pk,
                            SilcUInt32 pk_len, SilcSKEPKType pk_type,
                            SilcVerifyPublicKey completion, void *context);
 
@@ -652,7 +652,7 @@ typedef struct {
      application must explicitly cast it to correct type.  Usually `failure'
      is 32 bit failure type (see protocol specs for all protocol failure
      types). */
-  void (*failure)(SilcClient client, SilcClientConnection conn, 
+  void (*failure)(SilcClient client, SilcClientConnection conn,
                  SilcProtocol protocol, void *failure);
 
   /* Asks whether the user would like to perform the key agreement protocol.
@@ -678,10 +678,10 @@ typedef struct {
              const char *hostname, SilcUInt16 port);
 
   /* Delivers SILC session detachment data indicated by `detach_data' to the
-     application.  If application has issued SILC_COMMAND_DETACH command     
-     the client session in the SILC network is not quit.  The client remains 
+     application.  If application has issued SILC_COMMAND_DETACH command
+     the client session in the SILC network is not quit.  The client remains
      in the network but is detached.  The detachment data may be used later
-     to resume the session in the SILC Network.  The appliation is   
+     to resume the session in the SILC Network.  The appliation is
      responsible of saving the `detach_data', to for example in a file.
 
      The detachment data can be given as argument to the functions
@@ -745,12 +745,12 @@ typedef struct {
 
   /* Connection authentication method request timeout. If server does not
      reply back the current authentication method when we've requested it
-     in this time interval we'll assume the reply will not come at all. 
+     in this time interval we'll assume the reply will not come at all.
      If set to zero, the default value (2 seconds) will be used. */
   unsigned int connauth_request_secs;
 
   /* Nickname format string. This can be used to order the client library
-     to save the nicknames in the library in a certain format. Since 
+     to save the nicknames in the library in a certain format. Since
      nicknames are not unique in SILC it is possible to have multiple same
      nicknames. Using this format string it is possible to order the library
      to separate the multiple same nicknames from each other. The format
@@ -758,9 +758,9 @@ typedef struct {
      string. If this is NULL then default format is used which is the
      default nickname without anything else. The string MUST be NULL
      terminated.
-     
+
      Following format types are available:
-     
+
      %n  nickname      - the real nickname returned by the server (mandatory)
      %h  hostname      - the stripped hostname of the client
      %H  full hostname - the full hostname of the client
@@ -782,7 +782,7 @@ typedef struct {
   char nickname_format[32];
 
   /* If this is set to TRUE then the `nickname_format' is employed to all
-     saved nicknames even if there are no multiple same nicknames in the 
+     saved nicknames even if there are no multiple same nicknames in the
      cache. By default this is FALSE, which means that the `nickname_format'
      is employed only if the library will receive a nickname that is
      already saved in the cache. It is recommended to leave this to FALSE
@@ -817,7 +817,7 @@ typedef struct {
  *
  * SYNOPSIS
  *
- *    SilcClient silc_client_alloc(SilcClientOperations *ops, 
+ *    SilcClient silc_client_alloc(SilcClientOperations *ops,
  *                                 SilcClientParams *params,
  *                                 void *application,
  *                                 const char *silc_version);
@@ -833,7 +833,7 @@ typedef struct {
  *    application by client->application, client being SilcClient.
  *
  ***/
-SilcClient silc_client_alloc(SilcClientOperations *ops, 
+SilcClient silc_client_alloc(SilcClientOperations *ops,
                             SilcClientParams *params,
                             void *application,
                             const char *version_string);
@@ -956,14 +956,14 @@ typedef struct {
  *
  * SYNOPSIS
  *
- *    bool silc_client_connect_to_server(SilcClient client, 
+ *    bool silc_client_connect_to_server(SilcClient client,
  *                                      SilcClientConnectionParams *params,
  *                                      int port, char *host, void *context);
  *
  * DESCRIPTION
  *
  *    Connects to remote server. This is the main routine used to connect
- *    to SILC server. Returns -1 on error and the created socket otherwise. 
+ *    to SILC server. Returns -1 on error and the created socket otherwise.
  *    The `context' is user context that is saved into the SilcClientConnection
  *    that is created after the connection is created. Note that application
  *    may handle the connecting process outside the library. If this is the
@@ -973,7 +973,7 @@ typedef struct {
  *    If the `params' is provided they are used by the routine.
  *
  ***/
-bool silc_client_connect_to_server(SilcClient client, 
+bool silc_client_connect_to_server(SilcClient client,
                                   SilcClientConnectionParams *params,
                                   int port, char *host, void *context);
 
@@ -993,12 +993,12 @@ bool silc_client_connect_to_server(SilcClient client,
  *    connection to the connection table and returns a pointer to it. A client
  *    can have multiple connections to multiple servers. Every connection must
  *    be added to the client using this function. User data `context' may
- *    be sent as argument.  If the `params' is provided they are used by 
+ *    be sent as argument.  If the `params' is provided they are used by
  *    the routine.
  *
  * NOTES
  *
- *    This function is normally used only if the application performed 
+ *    This function is normally used only if the application performed
  *    the connecting outside the library, and did not called the
  *    silc_client_connect_to_server function at all. The library
  *    however may use this internally.
@@ -1013,7 +1013,7 @@ silc_client_add_connection(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void silc_client_del_connection(SilcClient client, 
+ *    void silc_client_del_connection(SilcClient client,
  *                                    SilcClientConnection conn);
  *
  * DESCRIPTION
@@ -1030,7 +1030,7 @@ void silc_client_del_connection(SilcClient client, SilcClientConnection conn);
  *
  * SYNOPSIS
  *
- *    void silc_client_add_socket(SilcClient client, 
+ *    void silc_client_add_socket(SilcClient client,
  *                                SilcSocketConnection sock);
  *
  * DESCRIPTION
@@ -1046,7 +1046,7 @@ void silc_client_add_socket(SilcClient client, SilcSocketConnection sock);
  *
  * SYNOPSIS
  *
- *    void silc_client_del_socket(SilcClient client, 
+ *    void silc_client_del_socket(SilcClient client,
  *                                SilcSocketConnection sock);
  *
  * DESCRIPTION
@@ -1091,7 +1091,7 @@ void silc_client_start_key_exchange(SilcClient client,
  * DESCRIPTION
  *
  *    Closes connection to remote end. Free's all allocated data except
- *    for some information such as nickname etc. that are valid at all time. 
+ *    for some information such as nickname etc. that are valid at all time.
  *
  ***/
 void silc_client_close_connection(SilcClient client,
@@ -1104,41 +1104,41 @@ void silc_client_close_connection(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void silc_client_send_channel_message(SilcClient client, 
+ *    void silc_client_send_channel_message(SilcClient client,
  *                                          SilcClientConnection conn,
  *                                          SilcChannelEntry channel,
  *                                          SilcChannelPrivateKey key,
  *                                          SilcMessageFlags flags,
- *                                          unsigned char *data, 
- *                                          SilcUInt32 data_len, 
+ *                                          unsigned char *data,
+ *                                          SilcUInt32 data_len,
  *                                          bool_force_send);
  *
  * DESCRIPTION
  *
  *    Sends packet to the `channel'. Packet to channel is always encrypted
- *    differently from "normal" packets. SILC header of the packet is 
+ *    differently from "normal" packets. SILC header of the packet is
  *    encrypted with the next receiver's key and the rest of the packet is
  *    encrypted with the channel specific key. Padding and HMAC is computed
  *    with the next receiver's key. The `data' is the channel message. If
- *    the `force_send' is TRUE then the packet is sent immediately. 
+ *    the `force_send' is TRUE then the packet is sent immediately.
  *
  *    If `key' is provided then that private key is used to encrypt the
  *    channel message.  If it is not provided, private keys has not been
  *    set at all, the normal channel key is used automatically.  If private
  *    keys are set then the first key (the key that was added first as
- *    private key) is used. 
+ *    private key) is used.
  *
  *    If the `flags' includes SILC_MESSAGE_FLAG_SIGNED the message will be
  *    digitally signed with the SILC key pair.
  *
  ***/
-void silc_client_send_channel_message(SilcClient client, 
+void silc_client_send_channel_message(SilcClient client,
                                      SilcClientConnection conn,
                                      SilcChannelEntry channel,
                                      SilcChannelPrivateKey key,
                                      SilcMessageFlags flags,
-                                     unsigned char *data, 
-                                     SilcUInt32 data_len, 
+                                     unsigned char *data,
+                                     SilcUInt32 data_len,
                                      bool force_send);
 
 /****f* silcclient/SilcClientAPI/silc_client_send_private_message
@@ -1149,8 +1149,8 @@ void silc_client_send_channel_message(SilcClient client,
  *                                          SilcClientConnection conn,
  *                                          SilcClientEntry client_entry,
  *                                          SilcMessageFlags flags,
- *                                          unsigned char *data, 
- *                                          SilcUInt32 data_len, 
+ *                                          unsigned char *data,
+ *                                          SilcUInt32 data_len,
  *                                          bool force_send);
  *
  * DESCRIPTION
@@ -1161,7 +1161,7 @@ void silc_client_send_channel_message(SilcClient client,
  *    network hence we need this own function for them. This is similar
  *    to silc_client_packet_send_to_channel except that we send private
  *    message. The `data' is the private message. If the `force_send' is
- *    TRUE the packet is sent immediately. 
+ *    TRUE the packet is sent immediately.
  *
  *    If the `flags' includes SILC_MESSAGE_FLAG_SIGNED the message will be
  *    digitally signed with the SILC key pair.
@@ -1171,8 +1171,8 @@ void silc_client_send_private_message(SilcClient client,
                                      SilcClientConnection conn,
                                      SilcClientEntry client_entry,
                                      SilcMessageFlags flags,
-                                     unsigned char *data, 
-                                     SilcUInt32 data_len, 
+                                     unsigned char *data,
+                                     SilcUInt32 data_len,
                                      bool force_send);
 
 
@@ -1215,10 +1215,11 @@ typedef void (*SilcGetClientCallback)(SilcClient client,
  *
  * DESCRIPTION
  *
- *    Finds client entry or entries by the `nickname' and `server'. The 
+ *    Finds client entry or entries by the `nickname' and `server'. The
  *    completion callback will be called when the client entries has been
  *    found.  After the server returns the client information it is cached
- *    and can be accesses locally at a later time.
+ *    and can be accesses locally at a later time.  The resolving is done
+ *    with IDENTIFY command.
  *
  * NOTES
  *
@@ -1226,7 +1227,13 @@ typedef void (*SilcGetClientCallback)(SilcClient client,
  *    information from the server. Thus, if you already know the client
  *    information then use the silc_client_get_client_by_id function to
  *    get the client entry since this function may be very slow and should
- *    be used only to initially get the client entries. 
+ *    be used only to initially get the client entries.
+ *
+ *    Since this routine resolves with IDENTIFY command only the relevant
+ *    information (user's nickname and username) is resolved.  For example,
+ *    user's real name, channel list and others are not resolved.  Caller
+ *    can/must resolve those separately if they are needed (for example,
+ *    with silc_client_get_client_by_id_resolve).
  *
  ***/
 void silc_client_get_clients(SilcClient client,
@@ -1265,6 +1272,46 @@ SilcClientEntry *silc_client_get_clients_local(SilcClient client,
                                               const char *format,
                                               SilcUInt32 *clients_count);
 
+/****f* silcclient/SilcClientAPI/silc_client_get_clients_by_channel
+ *
+ * SYNOPSIS
+ *
+ *    void silc_client_get_clients_by_channel(SilcClient client,
+ *                                            SilcClientConnection conn,
+ *                                            SilcChannelEntry channel,
+ *                                            SilcGetClientCallback completion,
+ *                                            void *context);
+ *
+ * DESCRIPTION
+ *
+ *    Gets client entries by the channel indicated by `channel'. Thus,
+ *    it resovles the users currently on that channel. If all users are
+ *    already resolved this returns the users from the channel. If the
+ *    users are resolved only partially this resolves the complete user
+ *    information. If no users are resolved on this channel at all, this
+ *    calls USERS command to resolve all users on the channel. The `completion'
+ *    will be called after the entries are available. When server returns
+ *    the client information it will be cached and can be accessed locally
+ *    at a later time.
+ *
+ *    This function can be used for example in SILC_COMMAND_JOIN command
+ *    reply handling in application to resolve users on that channel.  It
+ *    also can be used after calling silc_client_get_channel_resolve to
+ *    resolve users on that channel.
+ *
+ * NOTES
+ *
+ *    The resolving is done with WHOIS command. For this reason this
+ *    command may take a long time because it resolves detailed user
+ *    information.
+ *
+ ***/
+void silc_client_get_clients_by_channel(SilcClient client,
+                                       SilcClientConnection conn,
+                                       SilcChannelEntry channel,
+                                       SilcGetClientCallback completion,
+                                       void *context);
+
 /****f* silcclient/SilcClientAPI/silc_client_get_clients_by_list
  *
  * SYNOPSIS
@@ -1287,6 +1334,14 @@ SilcClientEntry *silc_client_get_clients_local(SilcClient client,
  *    the client information it will be cached and can be accessed locally
  *    at a later time.
  *
+ * NOTES
+ *
+ *    The resolving is done with IDENTIFY command. This means that only
+ *    the relevant information of user (it's nickname and username) is
+ *    resolved. For example, user's real name, channel lists and others
+ *    are not resolved. Caller can/must resolve those separately if they
+ *    are needed (for example, with silc_client_get_client_by_id_resolve).
+ *
  ***/
 void silc_client_get_clients_by_list(SilcClient client,
                                     SilcClientConnection conn,
@@ -1318,7 +1373,7 @@ SilcClientEntry silc_client_get_client_by_id(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void 
+ *    void
  *    silc_client_get_client_by_id_resolve(SilcClient client,
  *                                         SilcClientConnection conn,
  *                                         SilcClientID *client_id,
@@ -1332,7 +1387,8 @@ SilcClientEntry silc_client_get_client_by_id(SilcClient client,
  *    information from the server. Use this only if you know that you
  *    do not have the entry and the only thing you know about the client
  *    is its ID. When server returns the client information it will be
- *    cache and can be accessed locally at a later time.
+ *    cache and can be accessed locally at a later time. The resolving
+ *    is done by sending WHOIS command.
  *
  *    If the `attributes' is non-NULL then the buffer includes Requested
  *    Attributes which can be used to fetch very detailed information
@@ -1395,18 +1451,44 @@ typedef void (*SilcGetChannelCallback)(SilcClient client,
  *
  *    SilcChannelEntry silc_client_get_channel(SilcClient client,
  *                                             SilcClientConnection conn,
- *                                             char *channel);
+ *                                             char *channel_name);
  *
  * DESCRIPTION
  *
  *    Finds entry for channel by the channel name. Returns the entry or NULL
  *    if the entry was not found. It is found only if the client is joined
- *    to the channel. 
+ *    to the channel.  Use silc_client_get_channel_resolve or
+ *    silc_client_get_channel_by_id_resolve to resolve channel that client
+ *    is not joined.
  *
  ***/
 SilcChannelEntry silc_client_get_channel(SilcClient client,
                                         SilcClientConnection conn,
-                                        char *channel);
+                                        char *channel_name);
+
+/****f* silcclient/SilcClientAPI/silc_client_get_channel_resolve
+ *
+ * SYNOPSIS
+ *
+ *    void silc_client_get_channel_resolve(SilcClient client,
+ *                                         SilcClientConnection conn,
+ *                                         char *channel_name,
+ *                                         SilcGetChannelCallback completion,
+ *                                         void *context);
+ *
+ * DESCRIPTION
+ *
+ *    Resolves entry for channel by the channel name from the server.
+ *    The resolving is done with IDENTIFY command. Note that users on
+ *    the channel are not resolved at the same time. Use for example
+ *    silc_client_get_clients_by_channel to resolve all users on a channel.
+ *
+ ***/
+void silc_client_get_channel_resolve(SilcClient client,
+                                    SilcClientConnection conn,
+                                    char *channel_name,
+                                    SilcGetChannelCallback completion,
+                                    void *context);
 
 /****f* silcclient/SilcClientAPI/silc_client_get_channel_by_id
  *
@@ -1431,7 +1513,7 @@ SilcChannelEntry silc_client_get_channel_by_id(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void 
+ *    void
  *    silc_client_get_channel_by_id_resolve(SilcClient client,
  *                                          SilcClientConnection conn,
  *                                          SilcChannelID *channel_id,
@@ -1442,7 +1524,11 @@ SilcChannelEntry silc_client_get_channel_by_id(SilcClient client,
  *
  *    Resolves the channel information (its name mainly) from the server
  *    by the `channel_id'. Use this only if you know that you do not have
- *    the entry cached locally.
+ *    the entry cached locally. The resolving is done with IDENTIFY command.
+ *
+ *    Note that users on the channel are not resolved at the same time.
+ *    Use for example silc_client_get_clients_by_channel to resolve all
+ *    users on a channel.
  *
  ***/
 void silc_client_get_channel_by_id_resolve(SilcClient client,
@@ -1455,7 +1541,7 @@ void silc_client_get_channel_by_id_resolve(SilcClient client,
  *
  * SYNOPSIS
  *
- *    bool silc_client_del_channel(SilcClient client, 
+ *    bool silc_client_del_channel(SilcClient client,
  *                                 SilcClientConnection conn,
  *                                 SilcChannelEntry channel)
  *
@@ -1529,9 +1615,9 @@ bool silc_client_del_server(SilcClient client, SilcClientConnection conn,
  *
  * DESCRIPTION
  *
- *    Returns the ChannelUser entry if the `client_entry' is joined on the 
+ *    Returns the SilcChannelUser entry if the `client_entry' is joined on the
  *    channel indicated by the `channel'. NULL if client is not joined on
- *    the channel. 
+ *    the channel.
  *
  ***/
 SilcChannelUser silc_client_on_channel(SilcChannelEntry channel,
@@ -1585,7 +1671,7 @@ bool silc_client_command_call(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void silc_client_command_send(SilcClient client, 
+ *    void silc_client_command_send(SilcClient client,
  *                                  SilcClientConnection conn,
  *                                  SilcCommand command, SilcUInt16 ident,
  *                                  SilcUInt32 argc, ...);
@@ -1629,13 +1715,13 @@ void silc_client_command_send(SilcClient client, SilcClientConnection conn,
  *    called when an command reply is received to an earlier sent command.
  *    The `reply_cmd' is the command that must be received in order for
  *    the pending command callback indicated by `callback' to be called.
- *    The `callback' will deliver the `context' and 
- *    SilcClientCommandReplyContext which includes the internals of the 
+ *    The `callback' will deliver the `context' and
+ *    SilcClientCommandReplyContext which includes the internals of the
  *    command reply.
  *
  *    The `ident' is a command identifier which was set for the earlier
  *    sent command.  The command reply will include the same identifier
- *    and pending command callback will be called when the reply is 
+ *    and pending command callback will be called when the reply is
  *    received with the same command identifier.  It is possible to
  *    add multiple pending command callbacks for same command and for
  *    same identifier.
@@ -1648,7 +1734,7 @@ void silc_client_command_send(SilcClient client, SilcClientConnection conn,
  *
  *    Note also that the application is notified about the received command
  *    reply through the `command_reply' client operation before calling
- *    the `callback` pending command callback.  That is the normal 
+ *    the `callback` pending command callback.  That is the normal
  *    command reply handling, and is called regardless whether pending
  *    command callbacks are used or not.
  *
@@ -1705,10 +1791,10 @@ void silc_client_command_pending(SilcClientConnection conn,
  *
  *    It is not necessary to set key for normal private message usage. If the
  *    key is not set then the private messages are encrypted using normal
- *    session keys. Setting the private key, however, increases the security. 
+ *    session keys. Setting the private key, however, increases the security.
  *
  *    Returns FALSE if the key is already set for the `client_entry', TRUE
- *    otherwise. 
+ *    otherwise.
  *
  ***/
 bool silc_client_add_private_message_key(SilcClient client,
@@ -1739,7 +1825,7 @@ bool silc_client_add_private_message_key(SilcClient client,
  *    from the SKE key material structure. This structure is received if
  *    the application uses the silc_client_send_key_agreement to negotiate
  *    the key material. The `cipher' and `hmac' SHOULD be provided as it is
- *    negotiated also in the SKE protocol. 
+ *    negotiated also in the SKE protocol.
  *
  ***/
 bool silc_client_add_private_message_key_ske(SilcClient client,
@@ -1762,7 +1848,7 @@ bool silc_client_add_private_message_key_ske(SilcClient client,
  *
  *    Removes the private message from the library. The key won't be used
  *    after this to protect the private messages with the remote `client_entry'
- *    client. Returns FALSE on error, TRUE otherwise. 
+ *    client. Returns FALSE on error, TRUE otherwise.
  *
  ***/
 bool silc_client_del_private_message_key(SilcClient client,
@@ -1777,16 +1863,16 @@ bool silc_client_del_private_message_key(SilcClient client,
  *    silc_client_list_private_message_keys(SilcClient client,
  *                                          SilcClientConnection conn,
  *                                          SilcUInt32 *key_count);
- * 
+ *
  * DESCRIPTION
  *
  *    Returns array of set private message keys associated to the connection
  *    `conn'. Returns allocated SilcPrivateMessageKeys array and the array
  *    count to the `key_count' argument. The array must be freed by the caller
- *    by calling the silc_client_free_private_message_keys function. Note: 
+ *    by calling the silc_client_free_private_message_keys function. Note:
  *    the keys returned in the array is in raw format. It might not be desired
  *    to show the keys as is. The application might choose not to show the keys
- *    at all or to show the fingerprints of the keys. 
+ *    at all or to show the fingerprints of the keys.
  *
  ***/
 SilcPrivateMessageKeys
@@ -1800,18 +1886,18 @@ silc_client_list_private_message_keys(SilcClient client,
  *
  *    void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
  *                                               SilcUInt32 key_count);
- * 
+ *
  * DESCRIPTION
  *
  *    Frees the SilcPrivateMessageKeys array returned by the function
- *    silc_client_list_private_message_keys. 
+ *    silc_client_list_private_message_keys.
  *
  ***/
 void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
                                           SilcUInt32 key_count);
 
 
-/* Channel private key management (client_channel.c, 
+/* Channel private key management (client_channel.c,
    SilcChannelPrivateKey is defined in idlist.h) */
 
 /****f* silcclient/SilcClientAPI/silc_client_add_channel_private_key
@@ -1826,7 +1912,7 @@ void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
  *                                             char *hmac,
  *                                             unsigned char *key,
  *                                             SilcUInt32 key_len);
- * 
+ *
  * DESCRIPTION
  *
  *    Adds private key for channel. This may be set only if the channel's mode
@@ -1840,12 +1926,12 @@ void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
  *
  *    The private key for channel is optional. If it is not set then the
  *    channel messages are encrypted using the channel key generated by the
- *    server. However, setting the private key (or keys) for the channel 
+ *    server. However, setting the private key (or keys) for the channel
  *    significantly adds security. If more than one key is set the library
  *    will automatically try all keys at the message decryption phase. Note:
  *    setting many keys slows down the decryption phase as all keys has to
  *    be tried in order to find the correct decryption key. However, setting
- *    a few keys does not have big impact to the decryption performace. 
+ *    a few keys does not have big impact to the decryption performace.
  *
  * NOTES
  *
@@ -1856,7 +1942,7 @@ void silc_client_free_private_message_keys(SilcPrivateMessageKeys keys,
  *    silc_client_send_key_agreement) then the `key' MUST be the
  *    key->send_enc_key as this is dictated by the SILC protocol. However,
  *    currently it is not expected that the SKE key material would be used
- *    as channel private key. However, this API allows it. 
+ *    as channel private key. However, this API allows it.
  *
  ***/
 bool silc_client_add_channel_private_key(SilcClient client,
@@ -1875,12 +1961,12 @@ bool silc_client_add_channel_private_key(SilcClient client,
  *    bool silc_client_del_channel_private_keys(SilcClient client,
  *                                              SilcClientConnection conn,
  *                                              SilcChannelEntry channel);
- * 
+ *
  * DESCRIPTION
  *
  *    Removes all private keys from the `channel'. The old channel key is used
  *    after calling this to protect the channel messages. Returns FALSE on
- *    on error, TRUE otherwise. 
+ *    on error, TRUE otherwise.
  *
  ***/
 bool silc_client_del_channel_private_keys(SilcClient client,
@@ -1895,15 +1981,15 @@ bool silc_client_del_channel_private_keys(SilcClient client,
  *                                            SilcClientConnection conn,
  *                                            SilcChannelEntry channel,
  *                                            SilcChannelPrivateKey key);
- * 
+ *
  * DESCRIPTION
  *
- *    Removes and frees private key `key' from the channel `channel'. 
- *    The `key' is retrieved by calling the function 
+ *    Removes and frees private key `key' from the channel `channel'.
+ *    The `key' is retrieved by calling the function
  *    silc_client_list_channel_private_keys. The key is not used after
  *    this. If the key was last private key then the old channel key is
  *    used hereafter to protect the channel messages. This returns FALSE
- *    on error, TRUE otherwise. 
+ *    on error, TRUE otherwise.
  *
  ***/
 bool silc_client_del_channel_private_key(SilcClient client,
@@ -1927,7 +2013,7 @@ bool silc_client_del_channel_private_key(SilcClient client,
  *    The caller must free the array by calling the function
  *    silc_client_free_channel_private_keys. The pointers in the array may be
  *    used to delete the specific key by giving the pointer as argument to the
- *    function silc_client_del_channel_private_key. 
+ *    function silc_client_del_channel_private_key.
  *
  ***/
 SilcChannelPrivateKey *
@@ -2004,11 +2090,11 @@ void silc_client_current_channel_private_key(SilcClient client,
  *    the same packet including its hostname and port. If the library receives
  *    the reply from the remote client the `key_agreement' client operation
  *    callback will be called to verify whether the user wants to perform the
- *    key agreement or not. 
+ *    key agreement or not.
  *
  * NOTES
  *
- *    NOTE: If the application provided the `hostname' and the `port' and the 
+ *    NOTE: If the application provided the `hostname' and the `port' and the
  *    remote side initiates the key agreement protocol it is not verified
  *    from the user anymore whether the protocol should be executed or not.
  *    By setting the `hostname' and `port' the user gives permission to
@@ -2019,7 +2105,7 @@ void silc_client_current_channel_private_key(SilcClient client,
  *    perform the key agreement at all. If the key agreement protocol is
  *    performed the `completion' callback with the `context' will be called.
  *    If remote side decides to ignore the request the `completion' will be
- *    called after the specified timeout, `timeout_secs'. 
+ *    called after the specified timeout, `timeout_secs'.
  *
  *    NOTE: If the `hostname' and the `port' was not provided the `completion'
  *    will not be called at all since this does nothing more than sending
@@ -2027,8 +2113,8 @@ void silc_client_current_channel_private_key(SilcClient client,
  *
  *    NOTE: There can be only one active key agreement for one client entry.
  *    Before setting new one, the old one must be finished (it is finished
- *    after calling the completion callback) or the function 
- *    silc_client_abort_key_agreement must be called. 
+ *    after calling the completion callback) or the function
+ *    silc_client_abort_key_agreement must be called.
  *
  ***/
 void silc_client_send_key_agreement(SilcClient client,
@@ -2045,7 +2131,7 @@ void silc_client_send_key_agreement(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void 
+ *    void
  *    silc_client_perform_key_agreement(SilcClient client,
  *                                      SilcClientConnection conn,
  *                                      SilcClientEntry client_entry,
@@ -2066,7 +2152,7 @@ void silc_client_send_key_agreement(SilcClient client,
  *    be called after the key agreement protocol.
  *
  * NOTES
- * 
+ *
  *    NOTE: If the application returns TRUE in the `key_agreement' client
  *    operation the library will automatically start the key agreement. In this
  *    case the application must not call this function. However, application
@@ -2076,7 +2162,7 @@ void silc_client_send_key_agreement(SilcClient client,
  *    specific command). Thus, the API provides both, automatic and manual
  *    initiation of the key agreement. Calling this function is the manual
  *    initiation and returning TRUE in the `key_agreement' client operation
- *    is the automatic initiation. 
+ *    is the automatic initiation.
  *
  ***/
 void silc_client_perform_key_agreement(SilcClient client,
@@ -2102,10 +2188,10 @@ void silc_client_perform_key_agreement(SilcClient client,
  *
  * DESCRIPTION
  *
- *    Same as above but application has created already the connection to 
- *    the remote host. The `sock' is the socket to the remote connection. 
+ *    Same as above but application has created already the connection to
+ *    the remote host. The `sock' is the socket to the remote connection.
  *    Application can use this function if it does not want the client library
- *    to create the connection. 
+ *    to create the connection.
  *
  ***/
 void silc_client_perform_key_agreement_fd(SilcClient client,
@@ -2127,10 +2213,10 @@ void silc_client_perform_key_agreement_fd(SilcClient client,
  * DESCRIPTION
  *
  *    This function can be called to unbind the hostname and the port for
- *    the key agreement protocol. However, this function has effect only 
+ *    the key agreement protocol. However, this function has effect only
  *    before the key agreement protocol has been performed. After it has
- *    been performed the library will automatically unbind the port. The 
- *    `client_entry' is the client to which we sent the key agreement 
+ *    been performed the library will automatically unbind the port. The
+ *    `client_entry' is the client to which we sent the key agreement
  *    request.  The key agreement completion callback will be called
  *    with SILC_KEY_AGREEMENT_ABORTED status.
  *
@@ -2157,8 +2243,8 @@ void silc_client_abort_key_agreement(SilcClient client,
  *    to anyone who sends private message.  The `message' will be sent
  *    automatically back to the the client who send private message.  If
  *    away message is already set this replaces the old message with the
- *    new one.  If `message' is NULL the old away message is removed. 
- *    The sender may freely free the memory of the `message'. 
+ *    new one.  If `message' is NULL the old away message is removed.
+ *    The sender may freely free the memory of the `message'.
  *
  ***/
 void silc_client_set_away_message(SilcClient client,
@@ -2191,10 +2277,10 @@ typedef void (*SilcConnectionAuthRequest)(SilcClient client,
  *
  * SYNOPSIS
  *
- *    void 
+ *    void
  *    silc_client_request_authentication_method(SilcClient client,
  *                                              SilcClientConnection conn,
- *                                              SilcConnectionAuthRequest 
+ *                                              SilcConnectionAuthRequest
  *                                                callback,
  *                                              void *context);
  *
@@ -2209,7 +2295,7 @@ typedef void (*SilcConnectionAuthRequest)(SilcClient client,
  *    replied back with the current authentication method.
  *
  ***/
-void 
+void
 silc_client_request_authentication_method(SilcClient client,
                                          SilcClientConnection conn,
                                          SilcConnectionAuthRequest callback,
@@ -2286,8 +2372,8 @@ typedef enum {
  *    monitoring process.  The `error' will indicate the error type
  *    if `status' is SILC_CLIENT_FILE_MONITOR_ERROR.  The `offset' is the
  *    currently transmitted amount of total `filesize'.  The `client_entry'
- *    indicates the remote client, and the transmission session ID is the 
- *    `session_id'.  The filename being transmitted is indicated by the 
+ *    indicates the remote client, and the transmission session ID is the
+ *    `session_id'.  The filename being transmitted is indicated by the
  *    `filepath'.
  *
  ***/
@@ -2306,7 +2392,7 @@ typedef void (*SilcClientFileMonitor)(SilcClient client,
  *
  * SYNOPSIS
  *
- *    SilcClientFileError 
+ *    SilcClientFileError
  *    silc_client_file_send(SilcClient client,
  *                          SilcClientConnection conn,
  *                          SilcClientFileMonitor monitor,
@@ -2320,7 +2406,7 @@ typedef void (*SilcClientFileMonitor)(SilcClient client,
  *
  * DESCRIPTION
  *
- *    Sends a file indicated by the `filepath' to the remote client 
+ *    Sends a file indicated by the `filepath' to the remote client
  *    indicated by the `client_entry'.  This will negotiate a secret key
  *    with the remote client before actually starting the transmission of
  *    the file.  The `monitor' callback will be called to monitor the
@@ -2329,9 +2415,9 @@ typedef void (*SilcClientFileMonitor)(SilcClient client,
  *    This returns a file session ID for the file transmission to the
  *    `session_id' pointer.  It can be used to close the session (and
  *    abort the file transmission) by calling the silc_client_file_close
- *    function.  The session ID is also returned in the `monitor' callback. 
+ *    function.  The session ID is also returned in the `monitor' callback.
  *
- *    If the `local_ip' is provided then this will try to bind the 
+ *    If the `local_ip' is provided then this will try to bind the
  *    listener for key exchange protocol to that IP.  If `local_port' is
  *    non-zero that port is used.  If `local_ip' is NULL then this will
  *    automatically attempt to bind it to local IP address of the machine.
@@ -2345,7 +2431,7 @@ typedef void (*SilcClientFileMonitor)(SilcClient client,
  *    session.
  *
  ***/
-SilcClientFileError 
+SilcClientFileError
 silc_client_file_send(SilcClient client,
                      SilcClientConnection conn,
                      SilcClientFileMonitor monitor,
@@ -2361,7 +2447,7 @@ silc_client_file_send(SilcClient client,
  *
  * SYNOPSIS
  *
- *    SilcClientFileError 
+ *    SilcClientFileError
  *    silc_client_file_receive(SilcClient client,
  *                             SilcClientConnection conn,
  *                             SilcClientFileMonitor monitor,
@@ -2386,7 +2472,7 @@ silc_client_file_send(SilcClient client,
  *    session.
  *
  ***/
-SilcClientFileError 
+SilcClientFileError
 silc_client_file_receive(SilcClient client,
                         SilcClientConnection conn,
                         SilcClientFileMonitor monitor,
@@ -2467,7 +2553,7 @@ SilcAttributePayload silc_client_attribute_add(SilcClient client,
  *    is non-zero then all attributes of that type are deleted and the
  *    `attr' is ignored.  If `attr' is non-NULL then that specific
  *    attribute is deleted and `attribute' is ignored.
- *    
+ *
  *    You may get all added attributes with the function
  *    silc_client_attributes_get and to get the SilcAttributePayload.
  *    This function Returns TRUE if the attribute was found and deleted.
@@ -2524,10 +2610,10 @@ SilcBuffer silc_client_attributes_request(SilcAttribute attribute, ...);
  *
  * SYNOPSIS
  *
- *     bool silc_client_send_packet(SilcClient client, 
+ *     bool silc_client_send_packet(SilcClient client,
  *                                  SilcClientConnection conn,
- *                                  SilcPacketType type, 
- *                                  const unsigned char *data, 
+ *                                  SilcPacketType type,
+ *                                  const unsigned char *data,
  *                                  SilcUInt32 data_len);
  *
  * DESCRIPTION
@@ -2536,14 +2622,14 @@ SilcBuffer silc_client_attributes_request(SilcAttribute attribute, ...);
  *    to a connection indicated by `conn'.  Usually application does not
  *    need this routine since the Client Library handles the packet
  *    sending.  The `type' indicates the packet type.  If `data' is
- *    NULL then empty packet is sent.  This returns FALSE if packet cannot 
+ *    NULL then empty packet is sent.  This returns FALSE if packet cannot
  *    be sent.
  *
  ***/
-bool silc_client_send_packet(SilcClient client, 
+bool silc_client_send_packet(SilcClient client,
                             SilcClientConnection conn,
-                            SilcPacketType type, 
-                            const unsigned char *data, 
+                            SilcPacketType type,
+                            const unsigned char *data,
                             SilcUInt32 data_len);
 
 #include "command.h"
diff --git a/win32/README b/win32/README
new file mode 100644 (file)
index 0000000..658f9c2
--- /dev/null
@@ -0,0 +1,12 @@
+Compiling SILC Toolkit for Win32
+================================
+
+- The MSVC++ 6.0 is required to compile the SILC Toolkit.
+
+- Load the silc.dsw workspace file and build the libsilc and
+  libsilcclient libraries.  Both Debug and Release versions can
+  be compiled.
+
+- The include/ directory includes all include files from the
+  SILC Toolkit.  Use that directory as your include source for
+  SILC include files when you are programming new application.
diff --git a/win32/all.dsp b/win32/all.dsp
new file mode 100644 (file)
index 0000000..2358823
--- /dev/null
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="all" - Package Owner=<4>\r
+# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
+# ** DO NOT EDIT **\r
+\r
+# TARGTYPE "Win32 (x86) Generic Project" 0x010a\r
+\r
+CFG=all - Win32 Debug\r
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
+!MESSAGE use the Export Makefile command and run\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "all.mak".\r
+!MESSAGE \r
+!MESSAGE You can specify a configuration when running NMAKE\r
+!MESSAGE by defining the macro CFG on the command line. For example:\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "all.mak" CFG="all - Win32 Debug"\r
+!MESSAGE \r
+!MESSAGE Possible choices for configuration are:\r
+!MESSAGE \r
+!MESSAGE "all - Win32 Release" (based on "Win32 (x86) Generic Project")\r
+!MESSAGE "all - Win32 Debug" (based on "Win32 (x86) Generic Project")\r
+!MESSAGE \r
+\r
+# Begin Project\r
+# PROP AllowPerConfigDependencies 0\r
+# PROP Scc_ProjName ""\r
+# PROP Scc_LocalPath ""\r
+MTL=midl.exe\r
+\r
+!IF  "$(CFG)" == "all - Win32 Release"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 0\r
+# PROP BASE Output_Dir "Release"\r
+# PROP BASE Intermediate_Dir "Release"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 0\r
+# PROP Output_Dir "Release"\r
+# PROP Intermediate_Dir "Release"\r
+# PROP Target_Dir ""\r
+\r
+!ELSEIF  "$(CFG)" == "all - Win32 Debug"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 1\r
+# PROP BASE Output_Dir "Debug"\r
+# PROP BASE Intermediate_Dir "Debug"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 1\r
+# PROP Output_Dir "Debug"\r
+# PROP Intermediate_Dir "Debug"\r
+# PROP Target_Dir ""\r
+\r
+!ENDIF \r
+\r
+# Begin Target\r
+\r
+# Name "all - Win32 Release"\r
+# Name "all - Win32 Debug"\r
+# End Target\r
+# End Project\r
diff --git a/win32/clean_dist.pl b/win32/clean_dist.pl
new file mode 100644 (file)
index 0000000..fe10fba
--- /dev/null
@@ -0,0 +1,165 @@
+#!/usr/bin/perl\r
+\r
+$p = `pwd`;\r
+\r
+if($p =~ /.*(\/win32)/)\r
+{\r
+       @dirents = split('/', $p);\r
+       if(@dirents > 2)\r
+       {\r
+               # check dependencies\r
+               print "Checking dependencies\n";\r
+               @statLibSilcDllDebug = stat("libsilc/Debug/libsilc.dll");\r
+               @statLibSilcExpDebug = stat("libsilc/Debug/libsilc.exp");\r
+               @statLibSilcLibDebug = stat("libsilc/Debug/libsilc.lib");\r
+               if(! @statLibSilcDllDebug || ! @statLibSilcExpDebug || ! @statLibSilcLibDebug)\r
+               {\r
+                       die "Please rebuild libsilc Debug before creating the distribution\n";\r
+               }\r
+               \r
+               @statLibSilcDllRelease = stat("libsilc/Release/libsilc.dll");\r
+               @statLibSilcExpRelease = stat("libsilc/Release/libsilc.exp");\r
+               @statLibSilcLibRelease = stat("libsilc/Release/libsilc.lib");\r
+               if(! @statLibSilcDllRelease || ! @statLibSilcExpRelease || ! @statLibSilcLibRelease)\r
+               {\r
+                       die "Please rebuild libsilc Release before creating the distribution\n";\r
+               }\r
+               \r
+               @statLibSilcClientDllDebug = stat("libsilcclient/Debug/libsilcclient.dll");\r
+               @statLibSilcClientExpDebug = stat("libsilcclient/Debug/libsilcclient.exp");\r
+               @statLibSilcClientLibDebug = stat("libsilcclient/Debug/libsilcclient.lib");\r
+               if(! @statLibSilcClientDllDebug || \r
+                       ! @statLibSilcClientExpDebug || \r
+                       ! @statLibSilcClientLibDebug || \r
+                       (@statLibSilcClientDllDebug[9] < @statLibSilcDllDebug[9]) ||\r
+                       (@statLibSilcClientExpDebug[9] < @statLibSilcExpDebug[9]) ||\r
+                       (@statLibSilcClientLibDebug[9] < @statLibSilcLibDebug[9])\r
+                       )\r
+               {                       \r
+                       die "Please rebuild libsilcclient Debug before creating the distribution\n";\r
+               }\r
+\r
+               @statLibSilcClientDllRelease = stat("libsilcclient/Release/libsilcclient.dll");\r
+               @statLibSilcClientExpRelease = stat("libsilcclient/Release/libsilcclient.exp");\r
+               @statLibSilcClientLibRelease = stat("libsilcclient/Release/libsilcclient.lib");\r
+               if(! @statLibSilcClientDllRelease || \r
+                       ! @statLibSilcClientExpRelease || \r
+                       ! @statLibSilcClientLibRelease ||\r
+                       (@statLibSilcClientDllRelease[9] < @statLibSilcDllRelease[9]) ||\r
+                       (@statLibSilcClientExpRelease[9] < @statLibSilcExpRelease[9]) ||\r
+                       (@statLibSilcClientLibRelease[9] < @statLibSilcLibRelease[9])\r
+                       )\r
+               {\r
+                       die "Please rebuild libsilcclient Release before creating the distribution\n";\r
+               }\r
+\r
+               @statLibSilcStaticLibDebug = stat("libsilc_static/Debug/libsilc_static.lib");\r
+               if(! @statLibSilcStaticLibDebug)\r
+               {\r
+                       die "Please rebuild libsilc_static Debug before creating the distribution\n";\r
+               }\r
+               \r
+               @statLibSilcStaticLibRelease = stat("libsilc_static/Release/libsilc_static.lib");\r
+               if(! @statLibSilcStaticLibRelease)\r
+               {\r
+                       die "Please rebuild libsilc_static Release before creating the distribution\n";\r
+               }\r
+               \r
+               @statLibSilcClientStaticLibDebug = stat("libsilcclient_static/Debug/libsilcclient_static.lib");\r
+               if(! @statLibSilcClientStaticLibDebug || (@statLibSilcClientStaticLibDebug[9] < @statLibSilcStaticLibDebug[9]))\r
+               {                       \r
+                       die "Please rebuild libsilcclient_static Debug before creating the distribution\n";\r
+               }\r
+\r
+               @statLibSilcClientStaticLibRelease = stat("libsilcclient_static/Release/libsilcclient_static.lib");\r
+               if(! @statLibSilcClientStaticLibRelease || (@statLibSilcClientStaticLibRelease[9] < @statLibSilcStaticLibRelease[9]))\r
+               {                       \r
+                       die "Please rebuild libsilcclient_static Release before creating the distribution\n";\r
+               }\r
+\r
+               $index = @dirents - 2;\r
+               $top = @dirents[$index];\r
+               `find . -name \"*.obj\" -exec rm -f \\{} \\;`;\r
+               `find . -name \"*.idb\" -exec rm -f \\{} \\;`;\r
+               `find . -name \"*.pdb\" -exec rm -f \\{} \\;`;\r
+               `find . -name \"*.pch\" -exec rm -f \\{} \\;`;\r
+               `find ../ -name \"*.o\" -exec rm -f \\{} \\;`;\r
+               `find ../ -name \"*.lo\" -exec rm -f \\{} \\;`;\r
+               `find ../ -name \"*.a\" -exec rm -f \\{} \\;`;\r
+               `find ../ -name \"*.la\" -exec rm -f \\{} \\;`;\r
+               `find ../ -name \"*.lai\" -exec rm -f \\{} \\;`;\r
+\r
+               push(@excludeList, "--exclude $top/win32/Debug");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/CVS");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/libsilc.plg");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient/CVS");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient/libsilcclient.plg");\r
+               push(@excludeList, "--exclude $top/win32/libsilc_static/CVS");\r
+               push(@excludeList, "--exclude $top/win32/libsilc_static/libsilc_static.plg");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient_static/CVS");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient_static/libsilcclient_static.plg");\r
+               push(@excludeList, "--exclude $top/win32/silc.ncb");\r
+               push(@excludeList, "--exclude $top/includes/CVS");\r
+               push(@excludeList, "--exclude $top/lib/silcutil/win32/.cvsignore");\r
+               push(@excludeList, "--exclude $top/lib/silcutil/win32/CVS");\r
+               push(@excludeList, "--exclude $top/win32/all.plg");\r
+               push(@excludeList, "--exclude $top/win32/buildDistAfterAllReleaseAndDebug.plg");\r
+               push(@excludeList, "--exclude $top/win32/CVS");\r
+               push(@excludeList, "--exclude $top/win32/tests/CVS");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/Debug/libsilc.ilk");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/Debug/libsilc.pdb");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient/Debug/libsilcclient.ilk");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient/Debug/libsilcclient.pdb");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/Release/libsilc.ilk");\r
+               push(@excludeList, "--exclude $top/win32/libsilc/Release/libsilc.pdb");\r
+               push(@excludeList, "--exclude $top/win32/libsilcclient/Release/libsilcclient.ilk");\r
+               push(@excludeList, "--exclude $top/win32/silc.opt");\r
+               push(@excludeList, "--exclude $top/irssi");\r
+               push(@excludeList, "--exclude $top/doc/CVS");\r
+               push(@excludeList, "--exclude $top/doc/examples/CVS");\r
+               push(@excludeList, "--exclude $top/lib/doc/CVS");\r
+               push(@excludeList, "--exclude $top/lib/silcclient/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silccore/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silccore/tests/CVS");\r
+               push(@excludeList, "--exclude $top/lib/silccrypt/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silccrypt/tests/CVS");\r
+               push(@excludeList, "--exclude $top/lib/silcmath/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcmath/mpi/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcsftp/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcsftp/tests/CVS");\r
+               push(@excludeList, "--exclude $top/lib/silcsim/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcske/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcutil/.libs");\r
+               push(@excludeList, "--exclude $top/lib/silcutil/win32/.libs");\r
+               push(@excludeList, "--exclude $top/silcer/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/intl/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/macros/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/pixmaps/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/po/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/src/CVS");\r
+               push(@excludeList, "--exclude $top/silcer/ui/CVS");\r
+               push(@excludeList, "--exclude $top/tutorial/CVS");\r
+               push(@excludeList, "--exclude $top/tutorial/mybot/CVS");\r
+\r
+\r
+\r
+               $excludes = "";\r
+               foreach $entry(@excludeList)\r
+               {\r
+                       $excludes = sprintf("%s%s ", $excludes, $entry);\r
+               }\r
+               \r
+               print "Copying headers\n";\r
+               `rm -rf include`;\r
+               `mkdir -p include`;\r
+               `find ../includes -name \"*.h\" -exec cp \\{} include \\;`;\r
+               `find ../lib -name \"*.h\" -exec cp \\{} include \\;`;\r
+               print "Creating distribution archive.\n";\r
+               `cd ../.. ; tar $excludes -zcvf $top-win32.tgz $top/*` || die "Failed to create distribution\n";        \r
+       }\r
+}\r
+else\r
+{\r
+       die "Please run $0 from the win32 directory of the silc distribution\n";\r
+}\r
+\r
index c6102bb0d5c6000e66a9b57f4fe0f45d2ed6755f..02bba847cf6ef69bf22d7b19aa80233e3a150609 100644 (file)
 ; compatiblity. -Pekka\r
 ;\r
 EXPORTS\r
-       silc_aes_context_len @ 235 ; \r
-       silc_aes_decrypt_cbc @ 236 ; \r
-       silc_aes_encrypt_cbc @ 237 ; \r
-       silc_aes_set_key @ 238 ; \r
-       silc_aes_set_key_with_string @ 239 ; \r
-       silc_argument_get_arg_num @ 240 ; \r
-       silc_argument_get_arg_type @ 241 ; \r
-       silc_argument_get_first_arg @ 242 ; \r
-       silc_argument_get_next_arg @ 243 ; \r
-       silc_argument_payload_encode @ 244 ; \r
-       silc_argument_payload_encode_payload @ 245 ; \r
-       silc_argument_payload_free @ 246 ; \r
-       silc_argument_payload_parse @ 247 ; \r
-       silc_auth_get_data @ 248 ; \r
-       silc_auth_get_method @ 249 ; \r
-       silc_auth_payload_encode @ 250 ; \r
-       silc_auth_payload_free @ 251 ; \r
-       silc_auth_payload_parse @ 252 ; \r
-       silc_auth_public_key_auth_generate @ 253 ; \r
-       silc_auth_public_key_auth_verify @ 254 ; \r
-       silc_auth_public_key_auth_verify_data @ 255 ; \r
-       silc_auth_verify @ 256 ; \r
-       silc_auth_verify_data @ 257 ; \r
-       silc_blowfish_context_len @ 258 ; \r
-       silc_blowfish_decrypt_cbc @ 259 ; \r
-       silc_blowfish_encrypt_cbc @ 260 ; \r
-       silc_blowfish_set_key @ 261 ; \r
-       silc_blowfish_set_key_with_string @ 262 ; \r
-       silc_buffer_format @ 263 ; \r
-       silc_buffer_unformat @ 264 ; \r
-       silc_calloc @ 265 ; \r
-       silc_cast_context_len @ 266 ; \r
-       silc_cast_decrypt_cbc @ 267 ; \r
-       silc_cast_encrypt_cbc @ 268 ; \r
-       silc_cast_set_key @ 269 ; \r
-       silc_cast_set_key_with_string @ 270 ; \r
-       silc_channel_get_id @ 271 ; \r
-       silc_channel_get_id_parse @ 272 ; \r
-       silc_channel_get_mode @ 273 ; \r
-       silc_channel_get_name @ 274 ; \r
-       silc_channel_key_get_cipher @ 275 ; \r
-       silc_channel_key_get_id @ 276 ; \r
-       silc_channel_key_get_key @ 277 ; \r
-       silc_channel_key_payload_encode @ 278 ; \r
-       silc_channel_key_payload_free @ 279 ; \r
-       silc_channel_key_payload_parse @ 280 ; \r
-       silc_channel_payload_encode @ 289 ; \r
-       silc_channel_payload_free @ 290 ; \r
-       silc_channel_payload_list_free @ 291 ; \r
-       silc_channel_payload_parse @ 292 ; \r
-       silc_channel_payload_parse_list @ 293 ; \r
-       silc_check_line @ 294 ; \r
-       silc_cipher_alloc @ 295 ; \r
-       silc_cipher_decrypt @ 296 ; \r
-       silc_cipher_encrypt @ 297 ; \r
-       silc_cipher_free @ 298 ; \r
-       silc_cipher_get_block_len @ 299 ; \r
-       silc_cipher_get_iv @ 300 ; \r
-       silc_cipher_get_key_len @ 301 ; \r
-       silc_cipher_get_supported @ 302 ; \r
-       silc_cipher_is_supported @ 303 ; \r
-       silc_cipher_list @ 304 ; \r
-       silc_cipher_register @ 305 ; \r
-       silc_cipher_register_default @ 306 ; \r
-       silc_cipher_set_iv @ 307 ; \r
-       silc_cipher_set_key @ 308 ; \r
-       silc_cipher_unregister @ 309 ; \r
-       silc_client_chmode @ 310 ; \r
-       silc_client_chumode @ 311 ; \r
-       silc_client_chumode_char @ 312 ; \r
-       silc_command_get @ 313 ; \r
-       silc_command_get_args @ 314 ; \r
-       silc_command_get_ident @ 315 ; \r
-       silc_command_payload_encode @ 316 ; \r
-       silc_command_payload_encode_payload @ 317 ; \r
-       silc_command_payload_encode_va @ 318 ; \r
-       silc_command_payload_encode_vap @ 319 ; \r
-       silc_command_payload_free @ 320 ; \r
-       silc_command_payload_parse @ 321 ; \r
-       silc_command_reply_payload_encode_va @ 322 ; \r
-       silc_command_set_command @ 323 ; \r
-       silc_command_set_ident @ 324 ; \r
-       silc_config_open @ 327 ; \r
-       silc_debug @ 328 DATA ; \r
-       silc_pem_decode @ 329 ; \r
-       silc_default_ciphers @ 330 DATA ; \r
-       silc_default_hash @ 331 DATA ; \r
-       silc_default_hmacs @ 332 DATA ; \r
-       silc_default_pkcs @ 333 DATA ; \r
-       silc_pem_encode @ 334 ; \r
-       silc_pem_encode_file @ 335 ; \r
-       silc_file_readfile @ 336 ; \r
-       silc_file_writefile @ 337 ; \r
-       silc_file_writefile_mode @ 338 ; \r
-       silc_format @ 339 ; \r
-       silc_free @ 340 ; \r
-       silc_get_time @ 341 ; \r
-       silc_gets @ 342 ; \r
-       silc_gettimeofday @ 343 ; \r
-       silc_hash_alloc @ 344 ; \r
-       silc_hash_client_id_compare @ 345 ; \r
-       silc_hash_data @ 346 ; \r
-       silc_hash_data_compare @ 347 ; \r
-       silc_hash_fingerprint @ 348 ; \r
-       silc_hash_free @ 349 ; \r
-       silc_hash_get_supported @ 350 ; \r
-       silc_hash_id @ 351 ; \r
-       silc_hash_id_compare @ 352 ; \r
-       silc_hash_is_supported @ 353 ; \r
-       silc_hash_len @ 354 ; \r
-       silc_hash_list @ 355 ; \r
-       silc_hash_make @ 356 ; \r
-       silc_hash_ptr @ 357 ; \r
-       silc_hash_register @ 358 ; \r
-       silc_hash_register_default @ 359 ; \r
-       silc_hash_string @ 360 ; \r
-       silc_hash_string_compare @ 361 ; \r
-       silc_hash_table_add @ 362 ; \r
-       silc_hash_table_add_ext @ 363 ; \r
-       silc_hash_table_alloc @ 364 ; \r
-       silc_hash_table_count @ 365 ; \r
-       silc_hash_table_del @ 366 ; \r
-       silc_hash_table_del_by_context @ 367 ; \r
-       silc_hash_table_del_by_context_ext @ 368 ; \r
-       silc_hash_table_del_ext @ 369 ; \r
-       silc_hash_table_find @ 370 ; \r
-       silc_hash_table_find_ext @ 371 ; \r
-       silc_hash_table_find_foreach @ 372 ; \r
-       silc_hash_table_find_foreach_ext @ 373 ; \r
-       silc_hash_table_foreach @ 374 ; \r
-       silc_hash_table_free @ 375 ; \r
-       silc_hash_table_get @ 376 ; \r
-       silc_hash_table_list @ 377 ; \r
-       silc_hash_table_rehash @ 378 ; \r
-       silc_hash_table_rehash_ext @ 379 ; \r
-       silc_hash_table_replace @ 380 ; \r
-       silc_hash_table_replace_ext @ 381 ; \r
-       silc_hash_table_size @ 382 ; \r
-       silc_hash_uint @ 383 ; \r
-       silc_hash_unregister @ 384 ; \r
-       silc_hmac_alloc @ 385 ; \r
-       silc_hmac_free @ 386 ; \r
-       silc_hmac_get_supported @ 387 ; \r
-       silc_hmac_is_supported @ 388 ; \r
-       silc_hmac_len @ 389 ; \r
-       silc_hmac_list @ 390 ; \r
-       silc_hmac_make @ 391 ; \r
-       silc_hmac_make_truncated @ 393 ; \r
-       silc_hmac_make_with_key @ 394 ; \r
-       silc_hmac_register @ 395 ; \r
-       silc_hmac_register_default @ 396 ; \r
-       silc_hmac_set_key @ 397 ; \r
-       silc_hmac_unregister @ 398 ; \r
-       silc_id_dup @ 399 ; \r
-       silc_id_get_len @ 400 ; \r
-       silc_id_id2str @ 401 ; \r
-       silc_id_payload_encode @ 402 ; \r
-       silc_id_payload_free @ 403 ; \r
-       silc_id_payload_get_data @ 404 ; \r
-       silc_id_payload_get_id @ 405 ; \r
-       silc_id_payload_get_len @ 406 ; \r
-       silc_id_payload_get_type @ 407 ; \r
-       silc_id_payload_parse @ 408 ; \r
-       silc_id_payload_parse_id @ 410 ; \r
-       silc_id_render @ 411 ; \r
-       silc_id_str2id @ 412 ; \r
-       silc_idcache_add @ 413 ; \r
-       silc_idcache_alloc @ 414 ; \r
-       silc_idcache_del @ 415 ; \r
-       silc_idcache_del_all @ 416 ; \r
-       silc_idcache_del_by_context @ 417 ; \r
-       silc_idcache_del_by_id @ 418 ; \r
-       silc_idcache_del_by_id_ext @ 419 ; \r
-       silc_idcache_find_by_context @ 420 ; \r
-       silc_idcache_find_by_id @ 421 ; \r
-       silc_idcache_find_by_id_one @ 422 ; \r
-       silc_idcache_find_by_id_one_ext @ 423 ; \r
-       silc_idcache_find_by_name @ 424 ; \r
-       silc_idcache_find_by_name_one @ 425 ; \r
-       silc_idcache_free @ 426 ; \r
-       silc_idcache_get_all @ 427 ; \r
-       silc_idcache_list_count @ 428 ; \r
-       silc_idcache_list_first @ 429 ; \r
-       silc_idcache_list_free @ 430 ; \r
-       silc_idcache_list_next @ 431 ; \r
-       silc_idcache_purge @ 432 ; \r
-       silc_idcache_purge_by_context @ 433 ; \r
-       silc_key_agreement_get_hostname @ 434 ; \r
-       silc_key_agreement_get_port @ 435 ; \r
-       silc_key_agreement_payload_encode @ 436 ; \r
-       silc_key_agreement_payload_free @ 437 ; \r
-       silc_key_agreement_payload_parse @ 438 ; \r
-       silc_log_output @ 439 ; \r
-       silc_log_output_debug @ 440 ; \r
-       silc_log_output_hexdump @ 441 ; \r
-       silc_log_reset_callbacks @ 442 ; \r
-       silc_log_reset_debug_callbacks @ 443 ; \r
-       silc_log_set_callback @ 444 ; \r
-       silc_log_set_debug_callbacks @ 445 ; \r
-       silc_log_set_file @ 446 ; \r
-       silc_malloc @ 448 ; \r
-       silc_math_gen_prime @ 454 ; \r
-       silc_math_prime_test @ 455 ; \r
-       silc_md5_context_len @ 456 ; \r
-       silc_md5_final @ 457 ; \r
-       silc_md5_init @ 458 ; \r
-       silc_md5_transform @ 459 ; \r
-       silc_md5_update @ 460 ; \r
-       silc_mp_abs @ 461 ; \r
-       silc_mp_add @ 462 ; \r
-       silc_mp_add_ui @ 463 ; \r
-       silc_mp_and @ 464 ; \r
-       silc_mp_bin2mp @ 465 ; \r
-       silc_mp_cmp @ 466 ; \r
-       silc_mp_cmp_si @ 467 ; \r
-       silc_mp_cmp_ui @ 468 ; \r
-       silc_mp_div @ 469 ; \r
-       silc_mp_div_2exp @ 470 ; \r
-       silc_mp_div_2exp_qr @ 471 ; \r
-       silc_mp_div_qr @ 472 ; \r
-       silc_mp_div_ui @ 473 ; \r
-       silc_mp_gcd @ 474 ; \r
-       silc_mp_gcdext @ 475 ; \r
-       silc_mp_get_str @ 476 ; \r
-       silc_mp_get_ui @ 477 ; \r
-       silc_mp_init @ 478 ; \r
-       silc_mp_mod @ 479 ; \r
-       silc_mp_mod_2exp @ 480 ; \r
-       silc_mp_mod_ui @ 481 ; \r
-       silc_mp_modinv @ 482 ; \r
-       silc_mp_mp2bin @ 483 ; \r
-       silc_mp_mp2bin_noalloc @ 484 ; \r
-       silc_mp_mul @ 485 ; \r
-       silc_mp_mul_2exp @ 486 ; \r
-       silc_mp_mul_ui @ 487 ; \r
-       silc_mp_neg @ 488 ; \r
-       silc_mp_or @ 489 ; \r
-       silc_mp_pow @ 490 ; \r
-       silc_mp_pow_mod @ 491 ; \r
-       silc_mp_pow_mod_ui @ 492 ; \r
-       silc_mp_pow_ui @ 493 ; \r
-       silc_mp_set @ 494 ; \r
-       silc_mp_set_si @ 495 ; \r
-       silc_mp_set_str @ 496 ; \r
-       silc_mp_set_ui @ 497 ; \r
-       silc_mp_size @ 498 ; \r
-       silc_mp_sizeinbase @ 499 ; \r
-       silc_mp_sqrt @ 500 ; \r
-       silc_mp_sub @ 501 ; \r
-       silc_mp_sub_ui @ 502 ; \r
-       silc_mp_uninit @ 503 ; \r
-       silc_mp_xor @ 504 ; \r
-       silc_mutex_alloc @ 505 ; \r
-       silc_mutex_free @ 506 ; \r
-       silc_mutex_lock @ 507 ; \r
-       silc_mutex_unlock @ 508 ; \r
-       silc_net_accept_connection @ 509 ; \r
-       silc_net_addr2bin @ 510 ; \r
-       silc_net_check_host_by_sock @ 511 ; \r
-       silc_net_check_local_by_sock @ 512 ; \r
-       silc_net_close_connection @ 513 ; \r
-       silc_net_close_server @ 514 ; \r
-       silc_net_create_connection @ 515 ; \r
-       silc_net_create_connection_async @ 516 ; \r
-       silc_net_create_server @ 517 ; \r
-       silc_net_get_local_port @ 518 ; \r
-       silc_net_get_remote_port @ 519 ; \r
-       silc_net_get_socket_opt @ 520 ; \r
-       silc_net_is_ip @ 521 ; \r
-       silc_net_localhost @ 522 ; \r
-       silc_net_set_socket_nonblock @ 523 ; \r
-       silc_net_set_socket_opt @ 524 ; \r
-       silc_net_win32_init @ 525 ; \r
-       silc_net_win32_uninit @ 526 ; \r
-       silc_none_context_len @ 527 ; \r
-       silc_none_decrypt_cbc @ 528 ; \r
-       silc_none_encrypt_cbc @ 529 ; \r
-       silc_none_set_key @ 530 ; \r
-       silc_none_set_key_with_string @ 531 ; \r
-       silc_notify_get_arg_num @ 532 ; \r
-       silc_notify_get_args @ 533 ; \r
-       silc_notify_get_type @ 534 ; \r
-       silc_notify_payload_encode @ 535 ; \r
-       silc_notify_payload_encode_args @ 536 ; \r
-       silc_notify_payload_free @ 537 ; \r
-       silc_notify_payload_parse @ 538 ; \r
-       silc_packet_assemble @ 539 ; \r
-       silc_packet_context_alloc @ 540 ; \r
-       silc_packet_context_dup @ 541 ; \r
-       silc_packet_context_free @ 542 ; \r
-       silc_packet_encrypt @ 544 ; \r
-       silc_packet_parse @ 545 ; \r
-       silc_packet_parse_special @ 546 ; \r
-       silc_packet_receive @ 547 ; \r
-       silc_packet_receive_process @ 548 ; \r
-       silc_packet_send @ 549 ; \r
-       silc_packet_send_prepare @ 550 ; \r
-       silc_parse_command_line @ 551 ; \r
-       silc_parse_userfqdn @ 552 ; \r
-       silc_pkcs1_decrypt @ 553 ; \r
-       silc_pkcs1_encrypt @ 554 ; \r
-       silc_pkcs1_sign @ 555 ; \r
-       silc_pkcs1_verify @ 556 ; \r
-       silc_pkcs_alloc @ 557 ; \r
-       silc_pkcs_decode_identifier @ 558 ; \r
-       silc_pkcs_decrypt @ 559 ; \r
-       silc_pkcs_encode_identifier @ 560 ; \r
-       silc_pkcs_encrypt @ 561 ; \r
-       silc_pkcs_free @ 562 ; \r
-       silc_pkcs_free_identifier @ 563 ; \r
-       silc_pkcs_get_key_len @ 564 ; \r
-       silc_pkcs_get_private_key @ 565 ; \r
-       silc_pkcs_get_public_key @ 566 ; \r
-       silc_pkcs_get_supported @ 567 ; \r
-       silc_pkcs_is_supported @ 568 ; \r
-       silc_pkcs_list @ 569 ; \r
-       silc_pkcs_load_private_key @ 570 ; \r
-       silc_pkcs_load_public_key @ 571 ; \r
-       silc_pkcs_private_key_alloc @ 572 ; \r
-       silc_pkcs_private_key_data_encode @ 573 ; \r
-       silc_pkcs_private_key_data_set @ 574 ; \r
-       silc_pkcs_private_key_decode @ 575 ; \r
-       silc_pkcs_private_key_encode @ 576 ; \r
-       silc_pkcs_private_key_free @ 577 ; \r
-       silc_pkcs_private_key_set @ 578 ; \r
-       silc_pkcs_public_key_alloc @ 579 ; \r
-       silc_pkcs_public_key_data_encode @ 580 ; \r
-       silc_pkcs_public_key_data_set @ 581 ; \r
-       silc_pkcs_public_key_decode @ 582 ; \r
-       silc_pkcs_public_key_encode @ 583 ; \r
-       silc_pkcs_public_key_free @ 584 ; \r
-       silc_pkcs_public_key_set @ 585 ; \r
-       silc_pkcs_register @ 586 ; \r
-       silc_pkcs_register_default @ 587 ; \r
-       silc_pkcs_save_private_key @ 588 ; \r
-       silc_pkcs_save_public_key @ 590 ; \r
-       silc_pkcs_save_public_key_data @ 591 ; \r
-       silc_pkcs_sign @ 592 ; \r
-       silc_pkcs_sign_with_hash @ 593 ; \r
-       silc_pkcs_unregister @ 594 ; \r
-       silc_pkcs_verify @ 595 ; \r
-       silc_pkcs_verify_with_hash @ 596 ; \r
-       silc_protocol_alloc @ 602 ; \r
-       silc_protocol_cancel @ 603 ; \r
-       silc_protocol_execute @ 604 ; \r
-       silc_protocol_execute_final @ 605 ; \r
-       silc_protocol_free @ 606 ; \r
-       silc_protocol_list @ 607 ; \r
-       silc_protocol_register @ 608 ; \r
-       silc_protocol_unregister @ 609 ; \r
-       silc_rc5_context_len @ 610 ; \r
-       silc_rc5_decrypt_cbc @ 611 ; \r
-       silc_rc5_encrypt_cbc @ 612 ; \r
-       silc_rc5_set_key @ 613 ; \r
-       silc_rc5_set_key_with_string @ 614 ; \r
-       silc_rc6_context_len @ 615 ; \r
-       silc_rc6_decrypt_cbc @ 616 ; \r
-       silc_rc6_encrypt_cbc @ 617 ; \r
-       silc_rc6_set_key @ 618 ; \r
-       silc_rc6_set_key_with_string @ 619 ; \r
-       silc_realloc @ 620 ; \r
-       silc_rng_add_noise @ 621 ; \r
-       silc_rng_alloc @ 622 ; \r
-       silc_rng_free @ 623 ; \r
-       silc_rng_get_byte @ 624 ; \r
-       silc_rng_get_rn16 @ 625 ; \r
-       silc_rng_get_rn32 @ 626 ; \r
-       silc_rng_get_rn_data @ 627 ; \r
-       silc_rng_get_rn_string @ 628 ; \r
-       silc_rng_global_add_noise @ 629 ; \r
-       silc_rng_global_get_byte @ 630 ; \r
-       silc_rng_global_get_rn16 @ 631 ; \r
-       silc_rng_global_get_rn32 @ 632 ; \r
-       silc_rng_global_get_rn_data @ 633 ; \r
-       silc_rng_global_get_rn_string @ 634 ; \r
-       silc_rng_global_init @ 635 ; \r
-       silc_rng_global_uninit @ 636 ; \r
-       silc_rng_init @ 637 ; \r
-       silc_rsa_clear_keys @ 638 ; \r
-       silc_rsa_context_len @ 639 ; \r
-       silc_rsa_decrypt @ 640 ; \r
-       silc_rsa_encrypt @ 641 ; \r
-       silc_rsa_get_private_key @ 642 ; \r
-       silc_rsa_get_public_key @ 643 ; \r
-       silc_rsa_init @ 644 ; \r
-       silc_rsa_set_private_key @ 645 ; \r
-       silc_rsa_set_public_key @ 646 ; \r
-       silc_rsa_sign @ 647 ; \r
-       silc_rsa_verify @ 648 ; \r
-       silc_schedule @ 649 ; \r
-       silc_schedule_init @ 650 ; \r
-       silc_schedule_one @ 651 ; \r
-       silc_schedule_set_listen_fd @ 652 ; \r
-       silc_schedule_stop @ 653 ; \r
-       silc_schedule_task_add @ 654 ; \r
-       silc_schedule_task_del @ 655 ; \r
-       silc_schedule_task_del_by_callback @ 656 ; \r
-       silc_schedule_task_del_by_context @ 657 ; \r
-       silc_schedule_task_del_by_fd @ 658 ; \r
-       silc_schedule_uninit @ 659 ; \r
-       silc_schedule_unset_listen_fd @ 660 ; \r
-       silc_schedule_wakeup @ 661 ; \r
-       silc_select @ 665 ; \r
-       silc_sha1_context_len @ 666 ; \r
-       silc_sha1_final @ 667 ; \r
-       silc_sha1_init @ 668 ; \r
-       silc_sha1_transform @ 669 ; \r
-       silc_sha1_update @ 670 ; \r
-       silc_ske_abort @ 671 ; \r
-       silc_ske_alloc @ 672 ; \r
-       silc_ske_assemble_security_properties @ 673 ; \r
-       silc_ske_end @ 675 ; \r
-       silc_ske_free @ 676 ; \r
-       silc_ske_free_key_material @ 677 ; \r
-       silc_ske_group_get_by_name @ 678 ; \r
-       silc_ske_group_get_by_number @ 679 ; \r
-       silc_ske_get_supported_groups @ 680 ; \r
-       silc_ske_group_get_number @ 681 ; \r
-       silc_ske_groups @ 682 ; \r
-       silc_ske_initiator_finish @ 683 ; \r
-       silc_ske_initiator_phase_1 @ 684 ; \r
-       silc_ske_initiator_phase_2 @ 685 ; \r
-       silc_ske_initiator_start @ 686 ; \r
-       silc_ske_payload_ke_decode @ 688 ; \r
-       silc_ske_payload_ke_encode @ 689 ; \r
-       silc_ske_payload_ke_free @ 690 ; \r
-       silc_ske_payload_start_decode @ 691 ; \r
-       silc_ske_payload_start_encode @ 692 ; \r
-       silc_ske_payload_start_free @ 693 ; \r
-       silc_ske_process_key_material @ 694 ; \r
-       silc_ske_process_key_material_data @ 695 ; \r
-       silc_ske_responder_finish @ 696 ; \r
-       silc_ske_responder_phase_1 @ 697 ; \r
-       silc_ske_responder_phase_2 @ 698 ; \r
-       silc_ske_responder_start @ 699 ; \r
-       silc_ske_select_security_properties @ 700 ; \r
-       silc_ske_set_callbacks @ 701 ; \r
-       silc_socket_alloc @ 702 ; \r
-       silc_socket_dup @ 703 ; \r
-       silc_socket_free @ 704 ; \r
-       silc_socket_host_lookup @ 705 ; \r
-       silc_socket_read @ 706 ; \r
-       silc_socket_set_heartbeat @ 707 ; \r
-       silc_socket_write @ 708 ; \r
-       silc_string_compare @ 709 ; \r
-       silc_thread_create @ 710 ; \r
-       silc_thread_exit @ 711 ; \r
-       silc_thread_self @ 712 ; \r
-       silc_thread_wait @ 713 ; \r
-       silc_to_upper @ 715 ; \r
-       silc_twofish_context_len @ 716 ; \r
-       silc_twofish_decrypt_cbc @ 717 ; \r
-       silc_twofish_encrypt_cbc @ 718 ; \r
-       silc_twofish_set_key @ 719 ; \r
-       silc_twofish_set_key_with_string @ 720 ; \r
-       silc_buffer_format_vp @ 789 ; \r
-       silc_buffer_unformat_vp @ 790 ; \r
+       silc_aes_context_len @ 235 ;\r
+       silc_aes_decrypt_cbc @ 236 ;\r
+       silc_aes_encrypt_cbc @ 237 ;\r
+       silc_aes_set_key @ 238 ;\r
+       silc_aes_set_key_with_string @ 239 ;\r
+       silc_argument_get_arg_num @ 240 ;\r
+       silc_argument_get_arg_type @ 241 ;\r
+       silc_argument_get_first_arg @ 242 ;\r
+       silc_argument_get_next_arg @ 243 ;\r
+       silc_argument_payload_encode @ 244 ;\r
+       silc_argument_payload_encode_payload @ 245 ;\r
+       silc_argument_payload_free @ 246 ;\r
+       silc_argument_payload_parse @ 247 ;\r
+       silc_auth_get_data @ 248 ;\r
+       silc_auth_get_method @ 249 ;\r
+       silc_auth_payload_encode @ 250 ;\r
+       silc_auth_payload_free @ 251 ;\r
+       silc_auth_payload_parse @ 252 ;\r
+       silc_auth_public_key_auth_generate @ 253 ;\r
+       silc_auth_public_key_auth_verify @ 254 ;\r
+       silc_auth_public_key_auth_verify_data @ 255 ;\r
+       silc_auth_verify @ 256 ;\r
+       silc_auth_verify_data @ 257 ;\r
+       silc_blowfish_context_len @ 258 ;\r
+       silc_blowfish_decrypt_cbc @ 259 ;\r
+       silc_blowfish_encrypt_cbc @ 260 ;\r
+       silc_blowfish_set_key @ 261 ;\r
+       silc_blowfish_set_key_with_string @ 262 ;\r
+       silc_buffer_format @ 263 ;\r
+       silc_buffer_unformat @ 264 ;\r
+       silc_calloc @ 265 ;\r
+       silc_cast_context_len @ 266 ;\r
+       silc_cast_decrypt_cbc @ 267 ;\r
+       silc_cast_encrypt_cbc @ 268 ;\r
+       silc_cast_set_key @ 269 ;\r
+       silc_cast_set_key_with_string @ 270 ;\r
+       silc_channel_get_id @ 271 ;\r
+       silc_channel_get_id_parse @ 272 ;\r
+       silc_channel_get_mode @ 273 ;\r
+       silc_channel_get_name @ 274 ;\r
+       silc_channel_key_get_cipher @ 275 ;\r
+       silc_channel_key_get_id @ 276 ;\r
+       silc_channel_key_get_key @ 277 ;\r
+       silc_channel_key_payload_encode @ 278 ;\r
+       silc_channel_key_payload_free @ 279 ;\r
+       silc_channel_key_payload_parse @ 280 ;\r
+       silc_channel_payload_encode @ 289 ;\r
+       silc_channel_payload_free @ 290 ;\r
+       silc_channel_payload_list_free @ 291 ;\r
+       silc_channel_payload_parse @ 292 ;\r
+       silc_channel_payload_parse_list @ 293 ;\r
+       silc_check_line @ 294 ;\r
+       silc_cipher_alloc @ 295 ;\r
+       silc_cipher_decrypt @ 296 ;\r
+       silc_cipher_encrypt @ 297 ;\r
+       silc_cipher_free @ 298 ;\r
+       silc_cipher_get_block_len @ 299 ;\r
+       silc_cipher_get_iv @ 300 ;\r
+       silc_cipher_get_key_len @ 301 ;\r
+       silc_cipher_get_supported @ 302 ;\r
+       silc_cipher_is_supported @ 303 ;\r
+       silc_cipher_list @ 304 ;\r
+       silc_cipher_register @ 305 ;\r
+       silc_cipher_register_default @ 306 ;\r
+       silc_cipher_set_iv @ 307 ;\r
+       silc_cipher_set_key @ 308 ;\r
+       silc_cipher_unregister @ 309 ;\r
+       silc_client_chmode @ 310 ;\r
+       silc_client_chumode @ 311 ;\r
+       silc_client_chumode_char @ 312 ;\r
+       silc_command_get @ 313 ;\r
+       silc_command_get_args @ 314 ;\r
+       silc_command_get_ident @ 315 ;\r
+       silc_command_payload_encode @ 316 ;\r
+       silc_command_payload_encode_payload @ 317 ;\r
+       silc_command_payload_encode_va @ 318 ;\r
+       silc_command_payload_encode_vap @ 319 ;\r
+       silc_command_payload_free @ 320 ;\r
+       silc_command_payload_parse @ 321 ;\r
+       silc_command_reply_payload_encode_va @ 322 ;\r
+       silc_command_set_command @ 323 ;\r
+       silc_command_set_ident @ 324 ;\r
+       silc_config_open @ 327 ;\r
+       silc_debug @ 328 DATA ;\r
+       silc_pem_decode @ 329 ;\r
+       silc_default_ciphers @ 330 DATA ;\r
+       silc_default_hash @ 331 DATA ;\r
+       silc_default_hmacs @ 332 DATA ;\r
+       silc_default_pkcs @ 333 DATA ;\r
+       silc_pem_encode @ 334 ;\r
+       silc_pem_encode_file @ 335 ;\r
+       silc_file_readfile @ 336 ;\r
+       silc_file_writefile @ 337 ;\r
+       silc_file_writefile_mode @ 338 ;\r
+       silc_format @ 339 ;\r
+       silc_free @ 340 ;\r
+       silc_get_time @ 341 ;\r
+       silc_gets @ 342 ;\r
+       silc_gettimeofday @ 343 ;\r
+       silc_hash_alloc @ 344 ;\r
+       silc_hash_client_id_compare @ 345 ;\r
+       silc_hash_data @ 346 ;\r
+       silc_hash_data_compare @ 347 ;\r
+       silc_hash_fingerprint @ 348 ;\r
+       silc_hash_free @ 349 ;\r
+       silc_hash_get_supported @ 350 ;\r
+       silc_hash_id @ 351 ;\r
+       silc_hash_id_compare @ 352 ;\r
+       silc_hash_is_supported @ 353 ;\r
+       silc_hash_len @ 354 ;\r
+       silc_hash_list @ 355 ;\r
+       silc_hash_make @ 356 ;\r
+       silc_hash_ptr @ 357 ;\r
+       silc_hash_register @ 358 ;\r
+       silc_hash_register_default @ 359 ;\r
+       silc_hash_string @ 360 ;\r
+       silc_hash_string_compare @ 361 ;\r
+       silc_hash_table_add @ 362 ;\r
+       silc_hash_table_add_ext @ 363 ;\r
+       silc_hash_table_alloc @ 364 ;\r
+       silc_hash_table_count @ 365 ;\r
+       silc_hash_table_del @ 366 ;\r
+       silc_hash_table_del_by_context @ 367 ;\r
+       silc_hash_table_del_by_context_ext @ 368 ;\r
+       silc_hash_table_del_ext @ 369 ;\r
+       silc_hash_table_find @ 370 ;\r
+       silc_hash_table_find_ext @ 371 ;\r
+       silc_hash_table_find_foreach @ 372 ;\r
+       silc_hash_table_find_foreach_ext @ 373 ;\r
+       silc_hash_table_foreach @ 374 ;\r
+       silc_hash_table_free @ 375 ;\r
+       silc_hash_table_get @ 376 ;\r
+       silc_hash_table_list @ 377 ;\r
+       silc_hash_table_rehash @ 378 ;\r
+       silc_hash_table_rehash_ext @ 379 ;\r
+       silc_hash_table_replace @ 380 ;\r
+       silc_hash_table_replace_ext @ 381 ;\r
+       silc_hash_table_size @ 382 ;\r
+       silc_hash_uint @ 383 ;\r
+       silc_hash_unregister @ 384 ;\r
+       silc_hmac_alloc @ 385 ;\r
+       silc_hmac_free @ 386 ;\r
+       silc_hmac_get_supported @ 387 ;\r
+       silc_hmac_is_supported @ 388 ;\r
+       silc_hmac_len @ 389 ;\r
+       silc_hmac_list @ 390 ;\r
+       silc_hmac_make @ 391 ;\r
+       silc_hmac_make_truncated @ 393 ;\r
+       silc_hmac_make_with_key @ 394 ;\r
+       silc_hmac_register @ 395 ;\r
+       silc_hmac_register_default @ 396 ;\r
+       silc_hmac_set_key @ 397 ;\r
+       silc_hmac_unregister @ 398 ;\r
+       silc_id_dup @ 399 ;\r
+       silc_id_get_len @ 400 ;\r
+       silc_id_id2str @ 401 ;\r
+       silc_id_payload_encode @ 402 ;\r
+       silc_id_payload_free @ 403 ;\r
+       silc_id_payload_get_data @ 404 ;\r
+       silc_id_payload_get_id @ 405 ;\r
+       silc_id_payload_get_len @ 406 ;\r
+       silc_id_payload_get_type @ 407 ;\r
+       silc_id_payload_parse @ 408 ;\r
+       silc_id_payload_parse_id @ 410 ;\r
+       silc_id_render @ 411 ;\r
+       silc_id_str2id @ 412 ;\r
+       silc_idcache_add @ 413 ;\r
+       silc_idcache_alloc @ 414 ;\r
+       silc_idcache_del @ 415 ;\r
+       silc_idcache_del_all @ 416 ;\r
+       silc_idcache_del_by_context @ 417 ;\r
+       silc_idcache_del_by_id @ 418 ;\r
+       silc_idcache_del_by_id_ext @ 419 ;\r
+       silc_idcache_find_by_context @ 420 ;\r
+       silc_idcache_find_by_id @ 421 ;\r
+       silc_idcache_find_by_id_one @ 422 ;\r
+       silc_idcache_find_by_id_one_ext @ 423 ;\r
+       silc_idcache_find_by_name @ 424 ;\r
+       silc_idcache_find_by_name_one @ 425 ;\r
+       silc_idcache_free @ 426 ;\r
+       silc_idcache_get_all @ 427 ;\r
+       silc_idcache_list_count @ 428 ;\r
+       silc_idcache_list_first @ 429 ;\r
+       silc_idcache_list_free @ 430 ;\r
+       silc_idcache_list_next @ 431 ;\r
+       silc_idcache_purge @ 432 ;\r
+       silc_idcache_purge_by_context @ 433 ;\r
+       silc_key_agreement_get_hostname @ 434 ;\r
+       silc_key_agreement_get_port @ 435 ;\r
+       silc_key_agreement_payload_encode @ 436 ;\r
+       silc_key_agreement_payload_free @ 437 ;\r
+       silc_key_agreement_payload_parse @ 438 ;\r
+       silc_log_output @ 439 ;\r
+       silc_log_output_debug @ 440 ;\r
+       silc_log_output_hexdump @ 441 ;\r
+       silc_log_reset_callbacks @ 442 ;\r
+       silc_log_reset_debug_callbacks @ 443 ;\r
+       silc_log_set_callback @ 444 ;\r
+       silc_log_set_debug_callbacks @ 445 ;\r
+       silc_log_set_file @ 446 ;\r
+       silc_malloc @ 448 ;\r
+       silc_math_gen_prime @ 454 ;\r
+       silc_math_prime_test @ 455 ;\r
+       silc_md5_context_len @ 456 ;\r
+       silc_md5_final @ 457 ;\r
+       silc_md5_init @ 458 ;\r
+       silc_md5_transform @ 459 ;\r
+       silc_md5_update @ 460 ;\r
+       silc_mp_abs @ 461 ;\r
+       silc_mp_add @ 462 ;\r
+       silc_mp_add_ui @ 463 ;\r
+       silc_mp_and @ 464 ;\r
+       silc_mp_bin2mp @ 465 ;\r
+       silc_mp_cmp @ 466 ;\r
+       silc_mp_cmp_si @ 467 ;\r
+       silc_mp_cmp_ui @ 468 ;\r
+       silc_mp_div @ 469 ;\r
+       silc_mp_div_2exp @ 470 ;\r
+       silc_mp_div_2exp_qr @ 471 ;\r
+       silc_mp_div_qr @ 472 ;\r
+       silc_mp_div_ui @ 473 ;\r
+       silc_mp_gcd @ 474 ;\r
+       silc_mp_gcdext @ 475 ;\r
+       silc_mp_get_str @ 476 ;\r
+       silc_mp_get_ui @ 477 ;\r
+       silc_mp_init @ 478 ;\r
+       silc_mp_mod @ 479 ;\r
+       silc_mp_mod_2exp @ 480 ;\r
+       silc_mp_mod_ui @ 481 ;\r
+       silc_mp_modinv @ 482 ;\r
+       silc_mp_mp2bin @ 483 ;\r
+       silc_mp_mp2bin_noalloc @ 484 ;\r
+       silc_mp_mul @ 485 ;\r
+       silc_mp_mul_2exp @ 486 ;\r
+       silc_mp_mul_ui @ 487 ;\r
+       silc_mp_neg @ 488 ;\r
+       silc_mp_or @ 489 ;\r
+       silc_mp_pow @ 490 ;\r
+       silc_mp_pow_mod @ 491 ;\r
+       silc_mp_pow_mod_ui @ 492 ;\r
+       silc_mp_pow_ui @ 493 ;\r
+       silc_mp_set @ 494 ;\r
+       silc_mp_set_si @ 495 ;\r
+       silc_mp_set_str @ 496 ;\r
+       silc_mp_set_ui @ 497 ;\r
+       silc_mp_size @ 498 ;\r
+       silc_mp_sizeinbase @ 499 ;\r
+       silc_mp_sqrt @ 500 ;\r
+       silc_mp_sub @ 501 ;\r
+       silc_mp_sub_ui @ 502 ;\r
+       silc_mp_uninit @ 503 ;\r
+       silc_mp_xor @ 504 ;\r
+       silc_mutex_alloc @ 505 ;\r
+       silc_mutex_free @ 506 ;\r
+       silc_mutex_lock @ 507 ;\r
+       silc_mutex_unlock @ 508 ;\r
+       silc_net_accept_connection @ 509 ;\r
+       silc_net_addr2bin @ 510 ;\r
+       silc_net_check_host_by_sock @ 511 ;\r
+       silc_net_check_local_by_sock @ 512 ;\r
+       silc_net_close_connection @ 513 ;\r
+       silc_net_close_server @ 514 ;\r
+       silc_net_create_connection @ 515 ;\r
+       silc_net_create_connection_async @ 516 ;\r
+       silc_net_create_server @ 517 ;\r
+       silc_net_get_local_port @ 518 ;\r
+       silc_net_get_remote_port @ 519 ;\r
+       silc_net_get_socket_opt @ 520 ;\r
+       silc_net_is_ip @ 521 ;\r
+       silc_net_localhost @ 522 ;\r
+       silc_net_set_socket_nonblock @ 523 ;\r
+       silc_net_set_socket_opt @ 524 ;\r
+       silc_net_win32_init @ 525 ;\r
+       silc_net_win32_uninit @ 526 ;\r
+       silc_none_context_len @ 527 ;\r
+       silc_none_decrypt_cbc @ 528 ;\r
+       silc_none_encrypt_cbc @ 529 ;\r
+       silc_none_set_key @ 530 ;\r
+       silc_none_set_key_with_string @ 531 ;\r
+       silc_notify_get_arg_num @ 532 ;\r
+       silc_notify_get_args @ 533 ;\r
+       silc_notify_get_type @ 534 ;\r
+       silc_notify_payload_encode @ 535 ;\r
+       silc_notify_payload_encode_args @ 536 ;\r
+       silc_notify_payload_free @ 537 ;\r
+       silc_notify_payload_parse @ 538 ;\r
+       silc_packet_assemble @ 539 ;\r
+       silc_packet_context_alloc @ 540 ;\r
+       silc_packet_context_dup @ 541 ;\r
+       silc_packet_context_free @ 542 ;\r
+       silc_packet_encrypt @ 544 ;\r
+       silc_packet_parse @ 545 ;\r
+       silc_packet_parse_special @ 546 ;\r
+       silc_packet_receive @ 547 ;\r
+       silc_packet_receive_process @ 548 ;\r
+       silc_packet_send @ 549 ;\r
+       silc_packet_send_prepare @ 550 ;\r
+       silc_parse_command_line @ 551 ;\r
+       silc_parse_userfqdn @ 552 ;\r
+       silc_pkcs1_decrypt @ 553 ;\r
+       silc_pkcs1_encrypt @ 554 ;\r
+       silc_pkcs1_sign @ 555 ;\r
+       silc_pkcs1_verify @ 556 ;\r
+       silc_pkcs_alloc @ 557 ;\r
+       silc_pkcs_decode_identifier @ 558 ;\r
+       silc_pkcs_decrypt @ 559 ;\r
+       silc_pkcs_encode_identifier @ 560 ;\r
+       silc_pkcs_encrypt @ 561 ;\r
+       silc_pkcs_free @ 562 ;\r
+       silc_pkcs_free_identifier @ 563 ;\r
+       silc_pkcs_get_key_len @ 564 ;\r
+       silc_pkcs_get_private_key @ 565 ;\r
+       silc_pkcs_get_public_key @ 566 ;\r
+       silc_pkcs_get_supported @ 567 ;\r
+       silc_pkcs_is_supported @ 568 ;\r
+       silc_pkcs_list @ 569 ;\r
+       silc_pkcs_load_private_key @ 570 ;\r
+       silc_pkcs_load_public_key @ 571 ;\r
+       silc_pkcs_private_key_alloc @ 572 ;\r
+       silc_pkcs_private_key_data_encode @ 573 ;\r
+       silc_pkcs_private_key_data_set @ 574 ;\r
+       silc_pkcs_private_key_decode @ 575 ;\r
+       silc_pkcs_private_key_encode @ 576 ;\r
+       silc_pkcs_private_key_free @ 577 ;\r
+       silc_pkcs_private_key_set @ 578 ;\r
+       silc_pkcs_public_key_alloc @ 579 ;\r
+       silc_pkcs_public_key_data_encode @ 580 ;\r
+       silc_pkcs_public_key_data_set @ 581 ;\r
+       silc_pkcs_public_key_decode @ 582 ;\r
+       silc_pkcs_public_key_encode @ 583 ;\r
+       silc_pkcs_public_key_free @ 584 ;\r
+       silc_pkcs_public_key_set @ 585 ;\r
+       silc_pkcs_register @ 586 ;\r
+       silc_pkcs_register_default @ 587 ;\r
+       silc_pkcs_save_private_key @ 588 ;\r
+       silc_pkcs_save_public_key @ 590 ;\r
+       silc_pkcs_save_public_key_data @ 591 ;\r
+       silc_pkcs_sign @ 592 ;\r
+       silc_pkcs_sign_with_hash @ 593 ;\r
+       silc_pkcs_unregister @ 594 ;\r
+       silc_pkcs_verify @ 595 ;\r
+       silc_pkcs_verify_with_hash @ 596 ;\r
+       silc_protocol_alloc @ 602 ;\r
+       silc_protocol_cancel @ 603 ;\r
+       silc_protocol_execute @ 604 ;\r
+       silc_protocol_execute_final @ 605 ;\r
+       silc_protocol_free @ 606 ;\r
+       silc_protocol_list @ 607 ;\r
+       silc_protocol_register @ 608 ;\r
+       silc_protocol_unregister @ 609 ;\r
+       silc_rc5_context_len @ 610 ;\r
+       silc_rc5_decrypt_cbc @ 611 ;\r
+       silc_rc5_encrypt_cbc @ 612 ;\r
+       silc_rc5_set_key @ 613 ;\r
+       silc_rc5_set_key_with_string @ 614 ;\r
+       silc_rc6_context_len @ 615 ;\r
+       silc_rc6_decrypt_cbc @ 616 ;\r
+       silc_rc6_encrypt_cbc @ 617 ;\r
+       silc_rc6_set_key @ 618 ;\r
+       silc_rc6_set_key_with_string @ 619 ;\r
+       silc_realloc @ 620 ;\r
+       silc_rng_add_noise @ 621 ;\r
+       silc_rng_alloc @ 622 ;\r
+       silc_rng_free @ 623 ;\r
+       silc_rng_get_byte @ 624 ;\r
+       silc_rng_get_rn16 @ 625 ;\r
+       silc_rng_get_rn32 @ 626 ;\r
+       silc_rng_get_rn_data @ 627 ;\r
+       silc_rng_get_rn_string @ 628 ;\r
+       silc_rng_global_add_noise @ 629 ;\r
+       silc_rng_global_get_byte @ 630 ;\r
+       silc_rng_global_get_rn16 @ 631 ;\r
+       silc_rng_global_get_rn32 @ 632 ;\r
+       silc_rng_global_get_rn_data @ 633 ;\r
+       silc_rng_global_get_rn_string @ 634 ;\r
+       silc_rng_global_init @ 635 ;\r
+       silc_rng_global_uninit @ 636 ;\r
+       silc_rng_init @ 637 ;\r
+       silc_rsa_clear_keys @ 638 ;\r
+       silc_rsa_context_len @ 639 ;\r
+       silc_rsa_decrypt @ 640 ;\r
+       silc_rsa_encrypt @ 641 ;\r
+       silc_rsa_get_private_key @ 642 ;\r
+       silc_rsa_get_public_key @ 643 ;\r
+       silc_rsa_init @ 644 ;\r
+       silc_rsa_set_private_key @ 645 ;\r
+       silc_rsa_set_public_key @ 646 ;\r
+       silc_rsa_sign @ 647 ;\r
+       silc_rsa_verify @ 648 ;\r
+       silc_schedule @ 649 ;\r
+       silc_schedule_init @ 650 ;\r
+       silc_schedule_one @ 651 ;\r
+       silc_schedule_set_listen_fd @ 652 ;\r
+       silc_schedule_stop @ 653 ;\r
+       silc_schedule_task_add @ 654 ;\r
+       silc_schedule_task_del @ 655 ;\r
+       silc_schedule_task_del_by_callback @ 656 ;\r
+       silc_schedule_task_del_by_context @ 657 ;\r
+       silc_schedule_task_del_by_fd @ 658 ;\r
+       silc_schedule_uninit @ 659 ;\r
+       silc_schedule_unset_listen_fd @ 660 ;\r
+       silc_schedule_wakeup @ 661 ;\r
+       silc_select @ 665 ;\r
+       silc_sha1_context_len @ 666 ;\r
+       silc_sha1_final @ 667 ;\r
+       silc_sha1_init @ 668 ;\r
+       silc_sha1_transform @ 669 ;\r
+       silc_sha1_update @ 670 ;\r
+       silc_ske_abort @ 671 ;\r
+       silc_ske_alloc @ 672 ;\r
+       silc_ske_assemble_security_properties @ 673 ;\r
+       silc_ske_end @ 675 ;\r
+       silc_ske_free @ 676 ;\r
+       silc_ske_free_key_material @ 677 ;\r
+       silc_ske_group_get_by_name @ 678 ;\r
+       silc_ske_group_get_by_number @ 679 ;\r
+       silc_ske_get_supported_groups @ 680 ;\r
+       silc_ske_group_get_number @ 681 ;\r
+       silc_ske_groups @ 682 ;\r
+       silc_ske_initiator_finish @ 683 ;\r
+       silc_ske_initiator_phase_1 @ 684 ;\r
+       silc_ske_initiator_phase_2 @ 685 ;\r
+       silc_ske_initiator_start @ 686 ;\r
+       silc_ske_payload_ke_decode @ 688 ;\r
+       silc_ske_payload_ke_encode @ 689 ;\r
+       silc_ske_payload_ke_free @ 690 ;\r
+       silc_ske_payload_start_decode @ 691 ;\r
+       silc_ske_payload_start_encode @ 692 ;\r
+       silc_ske_payload_start_free @ 693 ;\r
+       silc_ske_process_key_material @ 694 ;\r
+       silc_ske_process_key_material_data @ 695 ;\r
+       silc_ske_responder_finish @ 696 ;\r
+       silc_ske_responder_phase_1 @ 697 ;\r
+       silc_ske_responder_phase_2 @ 698 ;\r
+       silc_ske_responder_start @ 699 ;\r
+       silc_ske_select_security_properties @ 700 ;\r
+       silc_ske_set_callbacks @ 701 ;\r
+       silc_socket_alloc @ 702 ;\r
+       silc_socket_dup @ 703 ;\r
+       silc_socket_free @ 704 ;\r
+       silc_socket_host_lookup @ 705 ;\r
+       silc_socket_read @ 706 ;\r
+       silc_socket_set_heartbeat @ 707 ;\r
+       silc_socket_write @ 708 ;\r
+       silc_string_compare @ 709 ;\r
+       silc_thread_create @ 710 ;\r
+       silc_thread_exit @ 711 ;\r
+       silc_thread_self @ 712 ;\r
+       silc_thread_wait @ 713 ;\r
+       silc_to_upper @ 715 ;\r
+       silc_twofish_context_len @ 716 ;\r
+       silc_twofish_decrypt_cbc @ 717 ;\r
+       silc_twofish_encrypt_cbc @ 718 ;\r
+       silc_twofish_set_key @ 719 ;\r
+       silc_twofish_set_key_with_string @ 720 ;\r
+       silc_buffer_format_vp @ 789 ;\r
+       silc_buffer_unformat_vp @ 790 ;\r
        silc_sftp_client_start @ 791 ;\r
        silc_sftp_client_shutdown @ 792 ;\r
        silc_sftp_client_receive_process @ 793 ;\r
@@ -564,20 +564,20 @@ EXPORTS
        silc_load_key_pair @ 882 ;\r
        silc_show_public_key @ 883 ;\r
        silc_change_private_key_passphrase @ 884 ;\r
-       silc_argument_payload_encode_one @ 885 ; \r
-       silc_message_payload_decrypt @ 886 ; \r
-       silc_message_payload_parse @ 887 ; \r
-       silc_message_payload_encrypt @ 888 ; \r
-       silc_message_payload_encode @ 889 ; \r
-       silc_message_payload_free @ 890 ; \r
-       silc_message_get_flags @ 891 ; \r
-       silc_message_get_data @ 892 ; \r
-       silc_message_get_mac @ 893 ; \r
-       silc_message_get_iv @ 894 ; \r
-       silc_message_signed_payload_parse @ 895 ; \r
-       silc_message_signed_payload_encode @ 896 ; \r
-       silc_message_signed_payload_free @ 897 ; \r
-       silc_message_signed_verify @ 898 ; \r
+       silc_argument_payload_encode_one @ 885 ;\r
+       silc_message_payload_decrypt @ 886 ;\r
+       silc_message_payload_parse @ 887 ;\r
+       silc_message_payload_encrypt @ 888 ;\r
+       silc_message_payload_encode @ 889 ;\r
+       silc_message_payload_free @ 890 ;\r
+       silc_message_get_flags @ 891 ;\r
+       silc_message_get_data @ 892 ;\r
+       silc_message_get_mac @ 893 ;\r
+       silc_message_get_iv @ 894 ;\r
+       silc_message_signed_payload_parse @ 895 ;\r
+       silc_message_signed_payload_encode @ 896 ;\r
+       silc_message_signed_payload_free @ 897 ;\r
+       silc_message_signed_verify @ 898 ;\r
         silc_message_signed_get_public_key @ 899 ;\r
         silc_hmac_unregister_all @ 900 ;\r
         silc_hash_unregister_all @ 901 ;\r
@@ -585,8 +585,5 @@ EXPORTS
         silc_cipher_unregister_all @ 903 ;\r
         silc_rng_get_byte_fast @ 904 ;\r
         silc_cipher_get_name @ 905 ;\r
-        silc_hmac_get_name @ 906 ;\r
-        silc_hash_get_name @ 907 ;\r
         silc_pkcs_public_key_payload_encode @ 908 ;\r
         silc_pkcs_public_key_payload_decode @ 909 ;\r
-\r
index f9b45781389f6876f182055eb02f2c0bb066dac1..83ea65b4c0815aaab9a81d94b841009e7ba14251 100644 (file)
@@ -252,10 +252,6 @@ SOURCE=..\..\lib\silcmath\mpi\mplogic.c
 \r
 SOURCE=..\..\lib\silcmath\mpi\mpmontg.c\r
 # End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpprime.c\r
-# End Source File\r
 # End Group\r
 # Begin Source File\r
 \r
diff --git a/win32/libsilc_static/libsilc_static.dsp b/win32/libsilc_static/libsilc_static.dsp
new file mode 100644 (file)
index 0000000..2ca90cd
--- /dev/null
@@ -0,0 +1,697 @@
+# Microsoft Developer Studio Project File - Name="libsilc_static" - Package Owner=<4>\r
+# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
+# ** DO NOT EDIT **\r
+\r
+# TARGTYPE "Win32 (x86) Static Library" 0x0104\r
+\r
+CFG=libsilc_static - Win32 Debug\r
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
+!MESSAGE use the Export Makefile command and run\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "libsilc_static.mak".\r
+!MESSAGE \r
+!MESSAGE You can specify a configuration when running NMAKE\r
+!MESSAGE by defining the macro CFG on the command line. For example:\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "libsilc_static.mak" CFG="libsilc_static - Win32 Debug"\r
+!MESSAGE \r
+!MESSAGE Possible choices for configuration are:\r
+!MESSAGE \r
+!MESSAGE "libsilc_static - Win32 Release" (based on "Win32 (x86) Static Library")\r
+!MESSAGE "libsilc_static - Win32 Debug" (based on "Win32 (x86) Static Library")\r
+!MESSAGE \r
+\r
+# Begin Project\r
+# PROP AllowPerConfigDependencies 0\r
+# PROP Scc_ProjName "Perforce Project"\r
+# PROP Scc_LocalPath "..\.."\r
+CPP=cl.exe\r
+RSC=rc.exe\r
+\r
+!IF  "$(CFG)" == "libsilc_static - Win32 Release"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 0\r
+# PROP BASE Output_Dir "Release"\r
+# PROP BASE Intermediate_Dir "Release"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 0\r
+# PROP Output_Dir "Release"\r
+# PROP Intermediate_Dir "Release"\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c\r
+# ADD CPP /nologo /W2 /GX /O2 /I ".\\" /I "..\\" /I "..\..\\" /I "..\..\includes" /I "..\..\lib\silccore" /I "..\..\lib\silcske" /I "..\..\lib\silcmath" /I "..\..\lib\silcmath\mpi" /I "..\..\lib\silcutil" /I "..\..\lib\silccrypt" /I "..\..\lib\silcsim" /I "..\..\lib\trq" /I "..\..\lib\silcsftp" /I "..\..\lib\contrib" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "MP_API_COMPATIBLE" /YX /FD /c\r
+# ADD BASE RSC /l 0x409 /d "NDEBUG"\r
+# ADD RSC /l 0x409 /d "NDEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LIB32=link.exe -lib\r
+# ADD BASE LIB32 /nologo\r
+# ADD LIB32 /nologo\r
+\r
+!ELSEIF  "$(CFG)" == "libsilc_static - Win32 Debug"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 1\r
+# PROP BASE Output_Dir "Debug"\r
+# PROP BASE Intermediate_Dir "Debug"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 1\r
+# PROP Output_Dir "Debug"\r
+# PROP Intermediate_Dir "Debug"\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c\r
+# ADD CPP /nologo /W2 /Gm /GX /ZI /Od /I ".\\" /I "..\\" /I "..\..\\" /I "..\..\includes" /I "..\..\lib\silccore" /I "..\..\lib\silcske" /I "..\..\lib\silcmath" /I "..\..\lib\silcmath\mpi" /I "..\..\lib\silcutil" /I "..\..\lib\silccrypt" /I "..\..\lib\silcsim" /I "..\..\lib\trq" /I "..\..\lib\silcsftp" /I "..\..\lib\contrib" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "MP_API_COMPATIBLE" /YX /FD /GZ /c\r
+# SUBTRACT CPP /WX\r
+# ADD BASE RSC /l 0x409 /d "_DEBUG"\r
+# ADD RSC /l 0x409 /d "_DEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LIB32=link.exe -lib\r
+# ADD BASE LIB32 /nologo\r
+# ADD LIB32 /nologo\r
+\r
+!ENDIF \r
+\r
+# Begin Target\r
+\r
+# Name "libsilc_static - Win32 Release"\r
+# Name "libsilc_static - Win32 Debug"\r
+# Begin Group "Source Files"\r
+\r
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
+# Begin Group "silccore"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcargument.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcattrs.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcauth.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcchannel.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silccommand.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcid.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcidcache.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcmessage.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcnotify.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcpacket.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcske"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\groups.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\payload.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\silcske.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcutil"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcapputil.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcbuffmt.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcconfig.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silchashtable.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silclog.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcmemory.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcnet.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcprotocol.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcschedule.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcsockconn.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcstrutil.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcutil.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcvcard.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32mutex.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32net.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32schedule.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32sockconn.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32thread.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\win32\silcwin32util.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcmath"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Group "mpi"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mpi.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mplogic.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mpmontg.c\r
+# End Source File\r
+# End Group\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\modinv.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mp_mpi.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpbin.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\silcprimegen.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "silccrypt"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\aes.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\blowfish.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\cast.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\md5.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\none.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\pkcs1.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc5.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc6.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rsa.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\sha1.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silccipher.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silchash.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silchmac.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silcpkcs.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silcrng.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\twofish.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcsftp No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\sftp_client.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\sftp_fs_memory.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\sftp_server.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\sftp_util.c\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# Begin Group "Header Files"\r
+\r
+# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
+# Begin Group "silccore No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcargument.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcattrs.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcauth.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcchannel.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silccommand.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcid.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcidcache.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcmessage.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcmode.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcnotify.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccore\silcprivate.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcske No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\groups.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\groups_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\payload.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\silcske.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcske\silcske_status.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcutil No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcapputil.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcbuffer.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcbuffmt.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcbufutil.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcconfig.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcdlist.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcfileutil.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silchashtable.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silclist.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silclog.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcmemory.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcmutex.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcnet.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcprotocol.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcschedule.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcschedule_i.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcsockconn.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcthread.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silctypes.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcutil.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcutil\silcvcard.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcmath No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Group "mpi No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\logtab.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\montmulf.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE="..\..\lib\silcmath\mpi\mpi-config.h"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE="..\..\lib\silcmath\mpi\mpi-priv.h"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mpi.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mplogic.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mpi\mpprime.h\r
+# End Source File\r
+# End Group\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\mp_mpi.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\silcmath.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\silcmp.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "silccrypt No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\aes.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\blowfish.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\blowfish_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\cast.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\cast_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\ciphers.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\ciphers_def.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\md5.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\md5_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\none.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\pkcs1.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc5.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc5_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc6.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rc6_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rijndael_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rsa.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\rsa_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\sha1.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\sha1_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silccipher.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silcdh.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silchash.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silchmac.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silcpkcs.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\silcrng.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\twofish.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silccrypt\twofish_internal.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "silcsftp"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\sftp_util.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\silcsftp.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcsftp\silcsftp_fs.h\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# End Target\r
+# End Project\r
index 942639fd25d8c52b8e381b706ec2e882db4d3fc5..b9c751bda1bc42cc05d87e2c4ac4611937269eea 100644 (file)
 ; compatiblity. -Pekka\r
 ;\r
 EXPORTS\r
-       silc_ske_check_version @ 1 ; \r
-       silc_client_add_channel_private_key @ 2 ; \r
-       silc_client_add_connection @ 3 ; \r
-       silc_client_add_private_message_key @ 4 ; \r
-       silc_client_add_private_message_key_ske @ 5 ; \r
-       silc_client_add_socket @ 6 ; \r
-       silc_client_alloc @ 7 ; \r
-       silc_client_channel_message @ 8 ; \r
-       silc_client_close_connection @ 9 ; \r
-       silc_client_command_alloc @ 10 ; \r
-       silc_client_command_ban @ 11 ; \r
-       silc_client_command_close @ 12 ; \r
-       silc_client_command_cmode @ 13 ; \r
-       silc_client_command_connect @ 14 ; \r
-       silc_client_command_cumode @ 15 ; \r
-       silc_client_command_dup @ 16 ; \r
-       silc_client_command_find @ 17 ; \r
-       silc_client_command_free @ 18 ; \r
-       silc_client_command_get_channel_by_id_callback @ 19 ; \r
-       silc_client_command_get_client_by_id_callback @ 20 ; \r
-       silc_client_command_get_client_callback @ 21 ; \r
-       silc_client_command_get_clients_list_callback @ 22 ; \r
-       silc_client_command_getkey @ 23 ; \r
-       silc_client_command_identify @ 24 ; \r
-       silc_client_command_info @ 25 ; \r
-       silc_client_command_invite @ 26 ; \r
-       silc_client_command_join @ 27 ; \r
-       silc_client_command_kick @ 28 ; \r
-       silc_client_command_kill @ 29 ; \r
-       silc_client_command_leave @ 30 ; \r
-       silc_client_command_list @ 31 ; \r
-       silc_client_command_motd @ 32 ; \r
-       silc_client_command_nick @ 33 ; \r
-       silc_client_command_oper @ 34 ; \r
-       silc_client_command_pending @ 35 ; \r
-       silc_client_command_pending_check @ 36 ; \r
-       silc_client_command_pending_del @ 37 ; \r
-       silc_client_command_ping @ 38 ; \r
-       silc_client_command_quit @ 39 ; \r
-       silc_client_command_reply_ban @ 40 ; \r
-       silc_client_command_reply_close @ 41 ; \r
-       silc_client_command_reply_cmode @ 42 ; \r
-       silc_client_command_reply_connect @ 43 ; \r
-       silc_client_command_reply_cumode @ 44 ; \r
-       silc_client_command_reply_free @ 45 ; \r
-       silc_client_command_reply_getkey @ 46 ; \r
-       silc_client_command_reply_identify @ 47 ; \r
-       silc_client_command_reply_info @ 48 ; \r
-       silc_client_command_reply_invite @ 49 ; \r
-       silc_client_command_reply_join @ 50 ; \r
-       silc_client_command_reply_kick @ 51 ; \r
-       silc_client_command_reply_kill @ 52 ; \r
-       silc_client_command_reply_leave @ 53 ; \r
-       silc_client_command_reply_list @ 54 ; \r
-       silc_client_command_reply_motd @ 55 ; \r
-       silc_client_command_reply_nick @ 56 ; \r
-       silc_client_command_reply_oper @ 57 ; \r
-       silc_client_command_reply_ping @ 58 ; \r
-       silc_client_command_reply_process @ 59 ; \r
-       silc_client_command_reply_shutdown @ 60 ; \r
-       silc_client_command_reply_silcoper @ 61 ; \r
-       silc_client_command_reply_topic @ 62 ; \r
-       silc_client_command_reply_umode @ 63 ; \r
-       silc_client_command_reply_users @ 64 ; \r
-       silc_client_command_reply_whois @ 65 ; \r
-       silc_client_command_reply_whowas @ 66 ; \r
-       silc_client_command_shutdown @ 67 ; \r
-       silc_client_command_silcoper @ 68 ; \r
-       silc_client_command_topic @ 70 ; \r
-       silc_client_command_umode @ 71 ; \r
-       silc_client_command_users @ 72 ; \r
-       silc_client_command_whois @ 73 ; \r
-       silc_client_command_whowas @ 74 ; \r
-       silc_client_connect_to_server @ 75 ; \r
-       silc_client_del_channel @ 76 ; \r
-       silc_client_del_channel_private_key @ 77 ; \r
-       silc_client_del_channel_private_keys @ 78 ; \r
-       silc_client_del_client @ 79 ; \r
-       silc_client_del_client_entry @ 80 ; \r
-       silc_client_del_connection @ 81 ; \r
-       silc_client_del_private_message_key @ 82 ; \r
-       silc_client_del_server @ 83 ; \r
-       silc_client_del_socket @ 84 ; \r
-       silc_client_disconnected_by_server @ 85 ; \r
-       silc_client_error_by_server @ 86 ; \r
-       silc_client_free @ 87 ; \r
-       silc_client_free_channel_private_keys @ 88 ; \r
-       silc_client_free_private_message_keys @ 89 ; \r
-       silc_client_get_channel @ 90 ; \r
-       silc_client_get_channel_by_id @ 91 ; \r
-       silc_client_get_channel_by_id_resolve @ 92 ; \r
-       silc_client_get_client_by_id @ 93 ; \r
-       silc_client_get_client_by_id_resolve @ 94 ; \r
-       silc_client_get_clients @ 95 ; \r
-       silc_client_get_clients_by_list @ 96 ; \r
-       silc_client_get_clients_local @ 97 ; \r
-       silc_client_get_server @ 98 ; \r
-       silc_client_get_server_by_id @ 99 ; \r
-       silc_client_init @ 100 ; \r
-       silc_client_key_agreement @ 101 ; \r
-       silc_client_list_channel_private_keys @ 102 ; \r
-       silc_client_list_private_message_keys @ 103 ; \r
-       silc_client_notify_by_server @ 105 ; \r
-       silc_client_packet_process @ 106 ; \r
-       silc_client_packet_send @ 107 ; \r
-       silc_client_packet_send_real @ 108 ; \r
-       silc_client_perform_key_agreement @ 109 ; \r
-       silc_client_perform_key_agreement_fd @ 110 ; \r
-       silc_client_private_message @ 111 ; \r
-       silc_client_private_message_key @ 112 ; \r
-       silc_client_process_failure @ 113 ; \r
-       silc_client_protocol_ke_send_packet @ 114 ; \r
-       silc_client_protocol_ke_set_keys @ 115 ; \r
-       silc_client_protocol_ke_verify_key @ 116 ; \r
-       silc_client_protocols_register @ 117 ; \r
-       silc_client_protocols_unregister @ 118 ; \r
-       silc_client_receive_channel_key @ 119 ; \r
-       silc_client_receive_new_id @ 120 ; \r
-       silc_client_remove_from_channels @ 121 ; \r
-       silc_client_replace_from_channels @ 122 ; \r
-       silc_client_run @ 123 ; \r
-       silc_client_save_channel_key @ 124 ; \r
-       silc_client_send_channel_message @ 125 ; \r
-       silc_client_command_send @ 126 ; \r
-       silc_client_send_key_agreement @ 127 ; \r
-       silc_client_send_private_message @ 128 ; \r
-       silc_client_send_private_message_key @ 129 ; \r
-       silc_client_start_key_exchange @ 131 ; \r
-       silc_client_stop @ 132 ; \r
-       silc_idlist_get_client @ 137 ; \r
-       silc_client_abort_key_agreement @ 138 ; \r
-       silc_client_set_away_message @ 139 ; \r
-       silc_client_request_authentication_method @ 140 ; \r
+       silc_ske_check_version @ 1 ;\r
+       silc_client_add_channel_private_key @ 2 ;\r
+       silc_client_add_connection @ 3 ;\r
+       silc_client_add_private_message_key @ 4 ;\r
+       silc_client_add_private_message_key_ske @ 5 ;\r
+       silc_client_add_socket @ 6 ;\r
+       silc_client_alloc @ 7 ;\r
+       silc_client_channel_message @ 8 ;\r
+       silc_client_close_connection @ 9 ;\r
+       silc_client_command_alloc @ 10 ;\r
+       silc_client_command_ban @ 11 ;\r
+       silc_client_command_close @ 12 ;\r
+       silc_client_command_cmode @ 13 ;\r
+       silc_client_command_connect @ 14 ;\r
+       silc_client_command_cumode @ 15 ;\r
+       silc_client_command_dup @ 16 ;\r
+       silc_client_command_find @ 17 ;\r
+       silc_client_command_free @ 18 ;\r
+       silc_client_command_get_channel_by_id_callback @ 19 ;\r
+       silc_client_command_get_client_by_id_callback @ 20 ;\r
+       silc_client_command_get_client_callback @ 21 ;\r
+       silc_client_command_get_clients_list_callback @ 22 ;\r
+       silc_client_command_getkey @ 23 ;\r
+       silc_client_command_identify @ 24 ;\r
+       silc_client_command_info @ 25 ;\r
+       silc_client_command_invite @ 26 ;\r
+       silc_client_command_join @ 27 ;\r
+       silc_client_command_kick @ 28 ;\r
+       silc_client_command_kill @ 29 ;\r
+       silc_client_command_leave @ 30 ;\r
+       silc_client_command_list @ 31 ;\r
+       silc_client_command_motd @ 32 ;\r
+       silc_client_command_nick @ 33 ;\r
+       silc_client_command_oper @ 34 ;\r
+       silc_client_command_pending @ 35 ;\r
+       silc_client_command_pending_check @ 36 ;\r
+       silc_client_command_pending_del @ 37 ;\r
+       silc_client_command_ping @ 38 ;\r
+       silc_client_command_quit @ 39 ;\r
+       silc_client_command_reply_ban @ 40 ;\r
+       silc_client_command_reply_close @ 41 ;\r
+       silc_client_command_reply_cmode @ 42 ;\r
+       silc_client_command_reply_connect @ 43 ;\r
+       silc_client_command_reply_cumode @ 44 ;\r
+       silc_client_command_reply_free @ 45 ;\r
+       silc_client_command_reply_getkey @ 46 ;\r
+       silc_client_command_reply_identify @ 47 ;\r
+       silc_client_command_reply_info @ 48 ;\r
+       silc_client_command_reply_invite @ 49 ;\r
+       silc_client_command_reply_join @ 50 ;\r
+       silc_client_command_reply_kick @ 51 ;\r
+       silc_client_command_reply_kill @ 52 ;\r
+       silc_client_command_reply_leave @ 53 ;\r
+       silc_client_command_reply_list @ 54 ;\r
+       silc_client_command_reply_motd @ 55 ;\r
+       silc_client_command_reply_nick @ 56 ;\r
+       silc_client_command_reply_oper @ 57 ;\r
+       silc_client_command_reply_ping @ 58 ;\r
+       silc_client_command_reply_process @ 59 ;\r
+       silc_client_command_reply_shutdown @ 60 ;\r
+       silc_client_command_reply_silcoper @ 61 ;\r
+       silc_client_command_reply_topic @ 62 ;\r
+       silc_client_command_reply_umode @ 63 ;\r
+       silc_client_command_reply_users @ 64 ;\r
+       silc_client_command_reply_whois @ 65 ;\r
+       silc_client_command_reply_whowas @ 66 ;\r
+       silc_client_command_shutdown @ 67 ;\r
+       silc_client_command_silcoper @ 68 ;\r
+       silc_client_command_topic @ 70 ;\r
+       silc_client_command_umode @ 71 ;\r
+       silc_client_command_users @ 72 ;\r
+       silc_client_command_whois @ 73 ;\r
+       silc_client_command_whowas @ 74 ;\r
+       silc_client_connect_to_server @ 75 ;\r
+       silc_client_del_channel @ 76 ;\r
+       silc_client_del_channel_private_key @ 77 ;\r
+       silc_client_del_channel_private_keys @ 78 ;\r
+       silc_client_del_client @ 79 ;\r
+       silc_client_del_client_entry @ 80 ;\r
+       silc_client_del_connection @ 81 ;\r
+       silc_client_del_private_message_key @ 82 ;\r
+       silc_client_del_server @ 83 ;\r
+       silc_client_del_socket @ 84 ;\r
+       silc_client_disconnected_by_server @ 85 ;\r
+       silc_client_error_by_server @ 86 ;\r
+       silc_client_free @ 87 ;\r
+       silc_client_free_channel_private_keys @ 88 ;\r
+       silc_client_free_private_message_keys @ 89 ;\r
+       silc_client_get_channel @ 90 ;\r
+       silc_client_get_channel_by_id @ 91 ;\r
+       silc_client_get_channel_by_id_resolve @ 92 ;\r
+       silc_client_get_client_by_id @ 93 ;\r
+       silc_client_get_client_by_id_resolve @ 94 ;\r
+       silc_client_get_clients @ 95 ;\r
+       silc_client_get_clients_by_list @ 96 ;\r
+       silc_client_get_clients_local @ 97 ;\r
+       silc_client_get_server @ 98 ;\r
+       silc_client_get_server_by_id @ 99 ;\r
+       silc_client_init @ 100 ;\r
+       silc_client_key_agreement @ 101 ;\r
+       silc_client_list_channel_private_keys @ 102 ;\r
+       silc_client_list_private_message_keys @ 103 ;\r
+       silc_client_notify_by_server @ 105 ;\r
+       silc_client_packet_process @ 106 ;\r
+       silc_client_packet_send @ 107 ;\r
+       silc_client_packet_send_real @ 108 ;\r
+       silc_client_perform_key_agreement @ 109 ;\r
+       silc_client_perform_key_agreement_fd @ 110 ;\r
+       silc_client_private_message @ 111 ;\r
+       silc_client_private_message_key @ 112 ;\r
+       silc_client_process_failure @ 113 ;\r
+       silc_client_protocol_ke_send_packet @ 114 ;\r
+       silc_client_protocol_ke_set_keys @ 115 ;\r
+       silc_client_protocol_ke_verify_key @ 116 ;\r
+       silc_client_protocols_register @ 117 ;\r
+       silc_client_protocols_unregister @ 118 ;\r
+       silc_client_receive_channel_key @ 119 ;\r
+       silc_client_receive_new_id @ 120 ;\r
+       silc_client_remove_from_channels @ 121 ;\r
+       silc_client_replace_from_channels @ 122 ;\r
+       silc_client_run @ 123 ;\r
+       silc_client_save_channel_key @ 124 ;\r
+       silc_client_send_channel_message @ 125 ;\r
+       silc_client_command_send @ 126 ;\r
+       silc_client_send_key_agreement @ 127 ;\r
+       silc_client_send_private_message @ 128 ;\r
+       silc_client_send_private_message_key @ 129 ;\r
+       silc_client_start_key_exchange @ 131 ;\r
+       silc_client_stop @ 132 ;\r
+       silc_idlist_get_client @ 137 ;\r
+       silc_client_abort_key_agreement @ 138 ;\r
+       silc_client_set_away_message @ 139 ;\r
+       silc_client_request_authentication_method @ 140 ;\r
        silc_client_file_send @ 141 ;\r
        silc_client_file_receive @ 142 ;\r
        silc_client_file_close @ 143 ;\r
@@ -164,3 +164,5 @@ EXPORTS
         silc_client_attribute_del @ 154 ;\r
         silc_client_attributes_get @ 155 ;\r
         silc_client_attributes_request @ 156 ;\r
+       silc_client_get_channel_resolve @ 157 ;\r
+       silc_client_get_clients_by_channel @ 158 ;\r
diff --git a/win32/libsilcclient_static/libsilcclient_static.dsp b/win32/libsilcclient_static/libsilcclient_static.dsp
new file mode 100644 (file)
index 0000000..55f6bb3
--- /dev/null
@@ -0,0 +1,176 @@
+# Microsoft Developer Studio Project File - Name="libsilcclient_static" - Package Owner=<4>\r
+# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
+# ** DO NOT EDIT **\r
+\r
+# TARGTYPE "Win32 (x86) Static Library" 0x0104\r
+\r
+CFG=libsilcclient_static - Win32 Debug\r
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
+!MESSAGE use the Export Makefile command and run\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "libsilcclient_static.mak".\r
+!MESSAGE \r
+!MESSAGE You can specify a configuration when running NMAKE\r
+!MESSAGE by defining the macro CFG on the command line. For example:\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "libsilcclient_static.mak" CFG="libsilcclient_static - Win32 Debug"\r
+!MESSAGE \r
+!MESSAGE Possible choices for configuration are:\r
+!MESSAGE \r
+!MESSAGE "libsilcclient_static - Win32 Release" (based on "Win32 (x86) Static Library")\r
+!MESSAGE "libsilcclient_static - Win32 Debug" (based on "Win32 (x86) Static Library")\r
+!MESSAGE \r
+\r
+# Begin Project\r
+# PROP AllowPerConfigDependencies 0\r
+# PROP Scc_ProjName "Perforce Project"\r
+# PROP Scc_LocalPath "..\.."\r
+CPP=cl.exe\r
+RSC=rc.exe\r
+\r
+!IF  "$(CFG)" == "libsilcclient_static - Win32 Release"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 0\r
+# PROP BASE Output_Dir "Release"\r
+# PROP BASE Intermediate_Dir "Release"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 0\r
+# PROP Output_Dir "Release"\r
+# PROP Intermediate_Dir "Release"\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c\r
+# ADD CPP /nologo /W2 /GX /O2 /I ".\\" /I "..\\" /I "..\..\\" /I "..\..\includes" /I "..\..\lib\silccore" /I "..\..\lib\silcske" /I "..\..\lib\silcmath" /I "..\..\lib\silcmath\mpi" /I "..\..\lib\silcutil" /I "..\..\lib\silccrypt" /I "..\..\lib\silcsim" /I "..\..\lib\trq" /I "..\..\lib\silcclient" /I "..\..\lib\silcsftp" /I "..\..\lib\contrib" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "MP_API_COMPATIBLE" /YX /FD /c\r
+# ADD BASE RSC /l 0x409 /d "NDEBUG"\r
+# ADD RSC /l 0x409 /d "NDEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LIB32=link.exe -lib\r
+# ADD BASE LIB32 /nologo\r
+# ADD LIB32 /nologo\r
+\r
+!ELSEIF  "$(CFG)" == "libsilcclient_static - Win32 Debug"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 1\r
+# PROP BASE Output_Dir "libsilcclient_static___Win32_Debug"\r
+# PROP BASE Intermediate_Dir "libsilcclient_static___Win32_Debug"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 1\r
+# PROP Output_Dir "Debug"\r
+# PROP Intermediate_Dir "Debug"\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c\r
+# ADD CPP /nologo /W2 /Gm /GX /ZI /Od /I ".\\" /I "..\\" /I "..\..\\" /I "..\..\includes" /I "..\..\lib\silccore" /I "..\..\lib\silcske" /I "..\..\lib\silcmath" /I "..\..\lib\silcmath\mpi" /I "..\..\lib\silcutil" /I "..\..\lib\silccrypt" /I "..\..\lib\silcsim" /I "..\..\lib\trq" /I "..\..\lib\silcclient" /I "..\..\lib\silcsftp" /I "..\..\lib\contrib" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "MP_API_COMPATIBLE" /YX /FD /GZ /c\r
+# ADD BASE RSC /l 0x409 /d "_DEBUG"\r
+# ADD RSC /l 0x409 /d "_DEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LIB32=link.exe -lib\r
+# ADD BASE LIB32 /nologo\r
+# ADD LIB32 /nologo\r
+\r
+!ENDIF \r
+\r
+# Begin Target\r
+\r
+# Name "libsilcclient_static - Win32 Release"\r
+# Name "libsilcclient_static - Win32 Debug"\r
+# Begin Group "Source Files"\r
+\r
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
+# Begin Group "silcclient"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_attrs.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_channel.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_ftp.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_keyagr.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_notify.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_prvmsg.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_resume.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\command.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\command_reply.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\idlist.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\protocol.c\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# Begin Group "Header Files"\r
+\r
+# PROP Default_Filter "h;hpp;hxx;hm;inl"\r
+# Begin Group "silcclient No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\client_internal.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\command.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\command_reply.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\idlist.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\protocol.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcclient\silcapi.h\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# End Target\r
+# End Project\r
index a8cbf4ac14ac65caa7803ee57d37dfd8744a2166..d43152db29ff171f99fbc93876ee62bcd9d3528d 100644 (file)
@@ -3,6 +3,30 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
 \r
 ###############################################################################\r
 \r
+Project: "all"=".\all.dsp" - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilc\r
+    End Project Dependency\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilcclient\r
+    End Project Dependency\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilc_static\r
+    End Project Dependency\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilcclient_static\r
+    End Project Dependency\r
+}}}\r
+\r
+###############################################################################\r
+\r
 Project: "libsilc"=".\libsilc\libsilc.dsp" - Package Owner=<4>\r
 \r
 Package=<5>\r
@@ -15,6 +39,18 @@ Package=<4>
 \r
 ###############################################################################\r
 \r
+Project: "libsilc_static"=".\libsilc_static\libsilc_static.dsp" - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
 Project: "libsilcclient"=".\libsilcclient\libsilcclient.dsp" - Package Owner=<4>\r
 \r
 Package=<5>\r
@@ -23,6 +59,24 @@ Package=<5>
 \r
 Package=<4>\r
 {{{\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilc\r
+    End Project Dependency\r
+}}}\r
+\r
+###############################################################################\r
+\r
+Project: "libsilcclient_static"=".\libsilcclient_static\libsilcclient_static.dsp" - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+    Begin Project Dependency\r
+    Project_Dep_Name libsilc_static\r
+    End Project Dependency\r
 }}}\r
 \r
 ###############################################################################\r