The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
serialize.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int cache_deserialize (rlm_cache_entry_t *c, fr_dict_t const *dict, char *in, ssize_t inlen)
 Converts a serialized cache entry back into a structure. More...
 
int cache_serialize (TALLOC_CTX *ctx, char **out, rlm_cache_entry_t const *c)
 Serialize a cache entry as a humanly readable string. More...
 

Function Documentation

◆ cache_deserialize()

int cache_deserialize ( rlm_cache_entry_t c,
fr_dict_t const *  dict,
char *  in,
ssize_t  inlen 
)

Converts a serialized cache entry back into a structure.

Parameters
[in]cCache entry to populate (should already be allocated)
[in]dictto use for unqualified attributes.
[in]inString representation of cache entry.
[in]inlenLength of string. May be < 0 in which case strlen will be used to calculate the length of the string.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 103 of file serialize.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cache_serialize()

int cache_serialize ( TALLOC_CTX *  ctx,
char **  out,
rlm_cache_entry_t const *  c 
)

Serialize a cache entry as a humanly readable string.

Parameters
ctxto alloc new string in. Should be a talloc pool a little bigger than the maximum serialized size of the entry.
outWhere to write pointer to serialized cache entry.
cCache entry to serialize.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 41 of file serialize.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: