All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
version.c File Reference
#include <freeradius-devel/radiusd.h>
+ Include dependency graph for version.c:

Go to the source code of this file.

Functions

int rad_check_lib_magic (uint64_t magic)
 Check if the application linking to the library has the correct magic number. More...
 
int ssl_check_consistency (void)
 
char const * ssl_version ()
 
char const * ssl_version_num (void)
 
int version_add_feature (CONF_SECTION *cs, char const *name, bool enabled)
 Add a feature flag to the main configuration. More...
 
int version_add_number (CONF_SECTION *cs, char const *name, char const *version)
 Add a library/server version pair to the main configuration. More...
 
void version_init_features (CONF_SECTION *cs)
 Initialise core feature flags. More...
 
void version_init_numbers (CONF_SECTION *cs)
 Initialise core version flags. More...
 
void version_print (void)
 

Variables

static
USES_APPLE_DEPRECATED_API
uint64_t 
libmagic = RADIUSD_MAGIC_NUMBER
 
char const * radiusd_version_short = RADIUSD_VERSION_STRING
 
static char const * spaces = " "
 

Function Documentation

int rad_check_lib_magic ( uint64_t  magic)

Check if the application linking to the library has the correct magic number.

Parameters
magicnumber as defined by RADIUSD_MAGIC_NUMBER
Returns
  • 0 on success.
  • -1 on prefix mismatch.
  • -2 on version mismatch.
  • -3 on commit mismatch.

Definition at line 208 of file version.c.

+ Here is the caller graph for this function:

int ssl_check_consistency ( void  )

Definition at line 184 of file version.c.

+ Here is the caller graph for this function:

char const* ssl_version ( void  )

Definition at line 193 of file version.c.

char const* ssl_version_num ( void  )

Definition at line 188 of file version.c.

+ Here is the caller graph for this function:

int version_add_feature ( 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.

Parameters
csto add feature pair to.
nameof feature.
enabledWhether the feature is present/enabled.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 249 of file version.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int version_add_number ( 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.

Parameters
csto add feature pair to.
nameof library or feature.
versionHumanly readable version text.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 284 of file version.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void version_init_features ( CONF_SECTION cs)

Initialise core feature flags.

Parameters
csWhere to add the CONF_PAIRS, if null pairs will be added to the 'feature' section of the main config.

Definition at line 313 of file version.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void version_init_numbers ( CONF_SECTION cs)

Initialise core version flags.

Parameters
csWhere to add the CONF_PAIRS, if null pairs will be added to the 'version' section of the main config.

Definition at line 491 of file version.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void version_print ( void  )

Definition at line 512 of file version.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

USES_APPLE_DEPRECATED_API uint64_t libmagic = RADIUSD_MAGIC_NUMBER
static

Definition at line 30 of file version.c.

char const* radiusd_version_short = RADIUSD_VERSION_STRING

Definition at line 31 of file version.c.

char const* spaces = " "
static

Definition at line 507 of file version.c.