|  | The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
    | 
Check version numbers of dependencies. More...
#include <freeradius-devel/util/regex.h>#include <freeradius-devel/util/syserror.h>#include <freeradius-devel/server/cf_util.h>#include <freeradius-devel/server/dependency.h>#include <freeradius-devel/server/log.h>#include <freeradius-devel/tls/openssl_user_macros.h> Include dependency graph for dependency.c:
 Include dependency graph for dependency.c:Go to the source code of this file.
| Functions | |
| int | dependency_feature_add (CONF_SECTION *cs, char const *name, bool enabled) | 
| Add a feature flag to the main configuration. | |
| void | dependency_features_init (CONF_SECTION *cs) | 
| Initialise core feature flags. | |
| int | dependency_version_number_add (CONF_SECTION *cs, char const *name, char const *version) | 
| Add a library/server version pair to the main configuration. | |
| void | dependency_version_numbers_init (CONF_SECTION *cs) | 
| Initialise core version flags. | |
| 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. | |
| Variables | |
| static CONF_SECTION * | default_feature_cs | 
| Default configuration section to add features to. | |
| static CONF_SECTION * | default_version_cs | 
| Default configuration section to add features to. | |
| static USES_APPLE_DEPRECATED_API uint64_t | libmagic = RADIUSD_MAGIC_NUMBER | 
| char const * | radiusd_version_short = STRINGIFY(RADIUSD_VERSION_MAJOR) "." STRINGIFY(RADIUSD_VERSION_MINOR) "." STRINGIFY(RADIUSD_VERSION_INCRM) | 
| static char const * | spaces = " " | 
Check version numbers of dependencies.
Definition in file dependency.c.
| 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 113 of file dependency.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 183 of file dependency.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 152 of file dependency.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 333 of file dependency.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void dependency_version_print | ( | void | ) | 
Definition at line 365 of file dependency.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 70 of file dependency.c.
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Default configuration section to add features to.
Definition at line 41 of file dependency.c.
| 
 | static | 
Default configuration section to add features to.
Definition at line 42 of file dependency.c.
| 
 | static | 
Definition at line 38 of file dependency.c.
| char const* radiusd_version_short = STRINGIFY(RADIUSD_VERSION_MAJOR) "." STRINGIFY(RADIUSD_VERSION_MINOR) "." STRINGIFY(RADIUSD_VERSION_INCRM) | 
Definition at line 39 of file dependency.c.
| 
 | static | 
Definition at line 360 of file dependency.c.
 1.9.8
 1.9.8