The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
version.c File Reference

Validate application and library magic numbers. More...

#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/version.h>
+ Include dependency graph for version.c:

Go to the source code of this file.

Functions

int fr_check_lib_magic (uint64_t magic)
 Check if the application linking to the library has the correct magic number. More...
 

Variables

static uint64_t libmagic = RADIUSD_MAGIC_NUMBER
 

Detailed Description

Validate application and library magic numbers.

Definition in file version.c.

Function Documentation

◆ fr_check_lib_magic()

int fr_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 40 of file version.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ libmagic

uint64_t libmagic = RADIUSD_MAGIC_NUMBER
static

Definition at line 29 of file version.c.