All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
rlm_date.c File Reference

Translates timestrings between formats. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <ctype.h>
#include <time.h>
+ Include dependency graph for rlm_date.c:

Go to the source code of this file.

Data Structures

struct  rlm_date_t
 

Typedefs

typedef struct rlm_date_t rlm_date_t
 

Functions

static int mod_bootstrap (CONF_SECTION *conf, void *instance)
 
static ssize_t xlat_date_convert (char **out, size_t outlen, void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt)
 

Variables

static const CONF_PARSER module_config []
 
module_t rlm_date
 

Detailed Description

Translates timestrings between formats.

Author
Artur Malinowski artur.nosp@m.@wow.nosp@m..com

Definition in file rlm_date.c.


Data Structure Documentation

struct rlm_date_t

Definition at line 32 of file rlm_date.c.

Data Fields
char const * fmt
char const * xlat_name

Typedef Documentation

typedef struct rlm_date_t rlm_date_t

Function Documentation

static int mod_bootstrap ( CONF_SECTION conf,
void *  instance 
)
static

Definition at line 102 of file rlm_date.c.

+ Here is the call graph for this function:

static ssize_t xlat_date_convert ( char **  out,
size_t  outlen,
void const *  mod_inst,
UNUSED void const *  xlat_inst,
REQUEST request,
char const *  fmt 
)
static

Definition at line 43 of file rlm_date.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const CONF_PARSER module_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("format", PW_TYPE_STRING, rlm_date_t, fmt), .dflt = "%b %e %Y %H:%M:%S %Z" },
}
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
String of printable characters.
Definition: radius.h:33

Definition at line 37 of file rlm_date.c.

module_t rlm_date
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "date",
.inst_size = sizeof(rlm_date_t),
.config = module_config,
.bootstrap = mod_bootstrap
}
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
Definition: rlm_date.c:102
#define RLM_MODULE_INIT
Definition: modules.h:86
static const CONF_PARSER module_config[]
Definition: rlm_date.c:37
struct rlm_date_t rlm_date_t

Definition at line 117 of file rlm_date.c.