/* 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;
/* 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;
/* 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;
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