updates.
[runtime.git] / apps / silcd / serverconfig.h
index 1d33597d8528ab6ea5829be365a9af10d3f8a984..77644e4fae1f1250276353c9fd26faffabfda43f 100644 (file)
@@ -95,8 +95,9 @@ typedef struct SilcServerConfigSectionConnectionClassStruct {
 /* Holds all client authentication data from config file */
 typedef struct SilcServerConfigSectionClientConnectionStruct {
   char *host;
-  int auth_meth;
-  char *auth_data;
+  SilcAuthMethod auth_meth;
+  void *auth_data;
+  unsigned int auth_data_len;
   unsigned short port;
   unsigned int class;
   struct SilcServerConfigSectionClientConnectionStruct *next;
@@ -106,10 +107,11 @@ typedef struct SilcServerConfigSectionClientConnectionStruct {
 /* Hols all server's administrators authentication data from config file */
 typedef struct SilcServerConfigSectionAdminConnectionStruct {
   char *host;
-  int auth_meth;
-  char *auth_data;
+  char *username;
   char *nickname;
-  unsigned int class;
+  SilcAuthMethod auth_meth;
+  void *auth_data;
+  unsigned int auth_data_len;
   struct SilcServerConfigSectionAdminConnectionStruct *next;
   struct SilcServerConfigSectionAdminConnectionStruct *prev;
 } SilcServerConfigSectionAdminConnection;
@@ -117,8 +119,9 @@ typedef struct SilcServerConfigSectionAdminConnectionStruct {
 /* Holds all configured server/router connections from config file */
 typedef struct SilcServerConfigSectionServerConnectionStruct {
   char *host;
-  int auth_meth;
-  char *auth_data;
+  SilcAuthMethod auth_meth;
+  void *auth_data;
+  unsigned int auth_data_len;
   unsigned short port;
   char *version;
   unsigned int class;
@@ -266,6 +269,9 @@ silc_server_config_find_server_conn(SilcServerConfig config,
 SilcServerConfigSectionServerConnection *
 silc_server_config_find_router_conn(SilcServerConfig config, 
                                    char *host, int port);
+SilcServerConfigSectionAdminConnection *
+silc_server_config_find_admin(SilcServerConfig config,
+                             char *host, char *username, char *nickname);
 void silc_server_config_print();
 
 #endif