The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Version checking functions. More...
#include <freeradius-devel/server/cf_util.h>
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | RADIUSD_VERSION_STRING STRINGIFY(RADIUSD_VERSION_MAJOR) "." STRINGIFY(RADIUSD_VERSION_MINOR) "." STRINGIFY(RADIUSD_VERSION_INCRM) |
Functions | |
int | dependency_feature_add (CONF_SECTION *cs, char const *name, bool enabled) |
Add a feature flag to the main configuration. More... | |
void | dependency_features_init (CONF_SECTION *cs) |
Initialise core feature flags. More... | |
int | dependency_version_number_add (CONF_SECTION *cs, char const *name, char const *version) |
Add a library/server version pair to the main configuration. More... | |
void | dependency_version_numbers_init (CONF_SECTION *cs) |
Initialise core version flags. More... | |
void | dependency_version_print (void) |
int | rad_check_lib_magic (uint64_t magic) |
Check if the application linking to the library has the correct magic number. More... | |
Variables | |
char const * | radiusd_version |
char const * | radiusd_version_short |
Version checking functions.
Definition in file dependency.h.
#define RADIUSD_VERSION_STRING STRINGIFY(RADIUSD_VERSION_MAJOR) "." STRINGIFY(RADIUSD_VERSION_MINOR) "." STRINGIFY(RADIUSD_VERSION_INCRM) |
Definition at line 39 of file dependency.h.
int dependency_feature_add | ( | CONF_SECTION * | cs, |
char const * | name, | ||
bool | enabled | ||
) |
Add a feature flag to the main configuration.
Add a feature flag (yes/no) to the 'feature' subsection off the main config.
This allows the user to create configurations that work with across multiple environments.
[in] | cs | to add feature pair to. May be NULL in which case the cs passed to dependency_feature_init() is used. |
[in] | name | of feature. |
[in] | enabled | Whether the feature is present/enabled. |
Definition at line 114 of file dependency.c.
void dependency_features_init | ( | CONF_SECTION * | cs | ) |
Initialise core feature flags.
cs | Where to add the CONF_PAIRS, if null pairs will be added to the 'feature' section of the main config. |
Definition at line 184 of file dependency.c.
int dependency_version_number_add | ( | CONF_SECTION * | cs, |
char const * | name, | ||
char const * | version | ||
) |
Add a library/server version pair to the main configuration.
Add a version number to the 'version' subsection off the main config.
Because of the optimisations in the configuration parser, these may be checked using regular expressions without a performance penalty.
The version pairs are there primarily to work around defects in libraries or the server.
[in] | cs | to add feature pair to. May be NULL in which case the cs passed to dependency_feature_init() is used. |
[in] | name | of library or feature. |
[in] | version | Humanly readable version text. |
Definition at line 153 of file dependency.c.
void dependency_version_numbers_init | ( | CONF_SECTION * | cs | ) |
Initialise core version flags.
cs | Where to add the CONF_PAIRS, if null pairs will be added to the 'version' section of the main config. |
Definition at line 342 of file dependency.c.
void dependency_version_print | ( | void | ) |
Definition at line 376 of file dependency.c.
int rad_check_lib_magic | ( | uint64_t | magic | ) |
Check if the application linking to the library has the correct magic number.
magic | number as defined by RADIUSD_MAGIC_NUMBER |
Definition at line 71 of file dependency.c.
|
extern |
Definition at line 40 of file dependency.c.