#define SILC_CONFIG_SERVER_LF_WARNING "warninglogfile"
#define SILC_CONFIG_SERVER_LF_ERROR "errorlogfile"
#define SILC_CONFIG_SERVER_LF_FATAL "fatallogfile"
+#define SILC_CONFIG_SERVER_LO_QUICK "quicklogs"
+#define SILC_CONFIG_SERVER_LO_FDELAY "flushdelay"
} SilcServerConfigSectionLogging;
/* Holds all configured connection classes */
char *version;
uint32 class;
bool initiator;
+ bool backup_router;
+ char *backup_replace_ip;
+ uint16 backup_replace_port;
+ bool backup_local;
struct SilcServerConfigSectionServerConnectionStruct *next;
struct SilcServerConfigSectionServerConnectionStruct *prev;
} SilcServerConfigSectionServerConnection;
char *motd_file;
} SilcServerConfigSectionMotd;
+/* holds pid file */
+typedef struct {
+ char *pid_file;
+} SilcServerConfigSectionPid;
+
/*
SILC Server Config object.
SilcServerConfigSectionAdminConnection *admins;
SilcServerConfigSectionDenyConnection *denied;
SilcServerConfigSectionMotd *motd;
+ SilcServerConfigSectionPid *pidfile;
} SilcServerConfigObject;
typedef SilcServerConfigObject *SilcServerConfig;
SILC_CONFIG_SERVER_SECTION_TYPE_ADMIN_CONNECTION,
SILC_CONFIG_SERVER_SECTION_TYPE_DENY_CONNECTION,
SILC_CONFIG_SERVER_SECTION_TYPE_MOTD,
+ SILC_CONFIG_SERVER_SECTION_TYPE_PID,
} SilcServerConfigSectionType;
/* SILC Configuration Section structure. */
int silc_server_config_parse_lines(SilcServerConfig config,
SilcServerConfigParse parse_config);
int silc_server_config_check_sections(uint32 checkmask);
-void silc_server_config_setlogfiles(SilcServerConfig config);
+void silc_server_config_setlogfiles(SilcServerConfig config, SilcSchedule sked);
bool silc_server_config_register_ciphers(SilcServerConfig config);
bool silc_server_config_register_pkcs(SilcServerConfig config);
bool silc_server_config_register_hashfuncs(SilcServerConfig config);
silc_server_config_find_router_conn(SilcServerConfig config,
char *host, int port);
bool silc_server_config_is_primary_route(SilcServerConfig config);
+SilcServerConfigSectionServerConnection *
+silc_server_config_get_primary_router(SilcServerConfig config);
SilcServerConfigSectionAdminConnection *
silc_server_config_find_admin(SilcServerConfig config,
char *host, char *username, char *nickname);