- struct SilcServerConfigSectionServerConnectionStruct *next;
- struct SilcServerConfigSectionServerConnectionStruct *prev;
-} SilcServerConfigSectionServerConnection;
-
-/* Holds all configured denied connections from config file */
-typedef struct SilcServerConfigSectionDenyConnectionStruct {
- char *host;
- char *comment;
- uint16 port;
- struct SilcServerConfigSectionDenyConnectionStruct *next;
- struct SilcServerConfigSectionDenyConnectionStruct *prev;
-} SilcServerConfigSectionDenyConnection;
-
-/* Holds motd file */
-typedef struct {
- char *motd_file;
-} SilcServerConfigSectionMotd;
-
-/*
- SILC Server Config object.
-
- This object holds all the data parsed from the SILC server configuration
- file. This is mainly used at the initialization of the server.
-
-*/
-typedef struct {
- /* Pointer back to the server */
- void *server;
-
- /* Filename of the configuration file */
- char *filename;
-
- /* Configuration sections */
- SilcServerConfigSectionAlg *cipher;
- SilcServerConfigSectionAlg *pkcs;
- SilcServerConfigSectionAlg *hash_func;
- SilcServerConfigSectionAlg *hmac;
- SilcServerConfigSectionServerKeys *server_keys;
- SilcServerConfigSectionServerInfo *server_info;
- SilcServerConfigSectionAdminInfo *admin_info;
- SilcServerConfigSectionListenPort *listen_port;
- SilcServerConfigSectionIdentity *identity;
- SilcServerConfigSectionLogging *logging;
- SilcServerConfigSectionConnectionClass *conn_class;
- SilcServerConfigSectionClientConnection *clients;
- SilcServerConfigSectionServerConnection *servers;
- SilcServerConfigSectionServerConnection *routers;
- SilcServerConfigSectionAdminConnection *admins;
- SilcServerConfigSectionDenyConnection *denied;
- SilcServerConfigSectionMotd *motd;
-} SilcServerConfigObject;