The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
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... | |
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.
[in] | c | Cache entry to populate (should already be allocated) |
[in] | dict | to use for unqualified attributes. |
[in] | in | String representation of cache entry. |
[in] | inlen | Length of string. May be < 0 in which case strlen will be used to calculate the length of the string. |
Definition at line 103 of file serialize.c.
int cache_serialize | ( | TALLOC_CTX * | ctx, |
char ** | out, | ||
rlm_cache_entry_t const * | c | ||
) |
Serialize a cache entry as a humanly readable string.
ctx | to alloc new string in. Should be a talloc pool a little bigger than the maximum serialized size of the entry. |
out | Where to write pointer to serialized cache entry. |
c | Cache entry to serialize. |
Definition at line 41 of file serialize.c.