The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions to encode data in our internal structure. More...
#include <freeradius-devel/internal/internal.h>
#include <freeradius-devel/io/pair.h>
#include <freeradius-devel/io/test_point.h>
#include <freeradius-devel/util/net.h>
#include <freeradius-devel/util/proto.h>
Go to the source code of this file.
Functions | |
ssize_t | fr_internal_encode_list (fr_dbuff_t *dbuff, fr_pair_list_t const *list, void *encode_ctx) |
Encode a list of pairs using the internal encoder. More... | |
ssize_t | fr_internal_encode_pair (fr_dbuff_t *dbuff, fr_dcursor_t *cursor, void *encode_ctx) |
Encode a data structure into an internal attribute. More... | |
static ssize_t | internal_encode (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
We use the same header for all types. More... | |
Variables | |
static fr_internal_encode_ctx_t | default_encode_ctx = { } |
fr_test_point_pair_encode_t | internal_tp_encode_pair |
Functions to encode data in our internal structure.
Because what we need is yet ANOTHER serialisation scheme.
Definition in file encode.c.
ssize_t fr_internal_encode_list | ( | fr_dbuff_t * | dbuff, |
fr_pair_list_t const * | list, | ||
void * | encode_ctx | ||
) |
Encode a list of pairs using the internal encoder.
[out] | dbuff | Where to write encoded data. |
[in] | list | List of attributes to encode. |
[in] | encode_ctx | Additional data to be used by the encoder. |
Definition at line 303 of file encode.c.
ssize_t fr_internal_encode_pair | ( | fr_dbuff_t * | dbuff, |
fr_dcursor_t * | cursor, | ||
void * | encode_ctx | ||
) |
Encode a data structure into an internal attribute.
[in,out] | dbuff | Where to write encoded data and how much one can write. |
[in] | cursor | Specifying attribute to encode. |
[in] | encode_ctx | Additional data such as the shared secret to use. |
Definition at line 281 of file encode.c.
|
static |
We use the same header for all types.
Encode the value of the value pair the cursor currently points at.
dbuff | data buffer to place the encoded data in |
da_stack | da stack corresponding to the value pair |
depth | in da_stack |
cursor | cursor whose current value is the one to be encoded |
encode_ctx | encoder context |
Definition at line 52 of file encode.c.
|
static |
fr_test_point_pair_encode_t internal_tp_encode_pair |