26 RCSIDH(main_config_h,
"$Id: be5dd37608b57f159641c00dce570c57dd355f7b $")
35 #define MAX_REQUEST_TIME 30
41 #include <freeradius-devel/server/cf_util.h>
42 #include <freeradius-devel/server/tmpl.h>
44 #include <freeradius-devel/util/dict.h>
111 #ifdef ENABLE_OPENSSL_VERSION_CHECK
112 char const *allow_vulnerable_openssl;
116 bool openssl_fips_mode;
117 bool openssl_fips_mode_is_set;
119 size_t openssl_async_pool_init;
122 size_t openssl_async_pool_max;
A section grouping multiple CONF_PAIR.
int multi_proc_sem_id
Semaphore we use to prevent multiple processes running.
char const * panic_action
Command to execute if the server receives a fatal signal.
void main_config_exclusive_proc_done(main_config_t const *config)
fr_time_delta_t stats_interval
for the scheduler
uint32_t max_networks
for the scheduler
int main_config_parse_option(char const *value)
int main_config_free(main_config_t **config)
void main_config_dict_dir_set(main_config_t *config, char const *path)
Set the global dictionary directory.
char const * name
Name of the daemon, usually 'radiusd'.
bool talloc_memory_report
Print a memory report on what's left unfreed.
char const * local_state_dir
void main_config_hup(main_config_t *config)
bool drop_requests
Administratively disable request processing.
int main_config_exclusive_proc(main_config_t *config)
Check to see if we're the only process using this configuration file (or PID file if specified)
size_t talloc_pool_size
Size of pool to allocate to hold each request_t.
uint32_t max_workers
for the scheduler
void main_config_name_set_default(main_config_t *config, char const *name, bool overwrite_config)
Set the server name.
bool daemonize
Should the server daemonize on startup.
bool log_timestamp_is_set
fr_dict_t * dict
Main dictionary.
char const * pid_file
Path to write out PID file.
void hup_logfile(main_config_t *config)
bool require_enum_prefix
require "::" for enum parsing. They're always printed with this
bool suppress_secrets
suppress secrets (or not)
bool rewrite_update
rewrite "update" to be new edit sections
int main_config_exclusive_proc_child(main_config_t const *config)
bool write_pid
write the PID file
bool allow_multiple_procs
Allow multiple instances of radiusd to run with the same config file.
uint32_t ins_max
max instruction count
bool log_line_number
Log src file/line the message was generated on.
bool forbid_update
forbid "update" sections
char const * dict_dir
Where to load dictionaries from.
uint32_t debug_level
The base log level for the server.
char const * raddb_dir
Path to raddb directory.
fr_time_delta_t max_request_time
How long a request can be processed for before timing out.
bool overwrite_config_name
Overwrite the configured name, as this was specified by the user on the command line.
bool ins_countup
count up to "max"
int main_config_init(main_config_t *config)
main_config_t const * main_config
Global configuration singleton.
char * multi_proc_sem_path
Semaphore path.
bool allow_core_dumps
Whether the server is allowed to drop a core when receiving a fatal signal.
void main_config_raddb_dir_set(main_config_t *config, char const *path)
Set the global radius config directory.
CONF_SECTION * root_cs
Root of the server config.
uint32_t max_requests
maximum number of requests outstanding
main_config_t * main_config_alloc(TALLOC_CTX *ctx)
Allocate a main_config_t struct, setting defaults.
bool spawn_workers
Should the server spawn threads.
bool main_config_migrate_option_get(char const *name)
Main server configuration.
static const conf_parser_t config[]
A time delta, a difference in time measured in nanoseconds.