18 #include <freeradius-devel/util/pair.h>
19 #include <freeradius-devel/util/talloc.h>
24 #define FR_INTERNAL_MASK_TYPE 0xe0
25 #define FR_INTERNAL_MASK_LEN 0x1c
26 #define FR_INTERNAL_FLAG_EXTENDED 0x01
27 #define FR_INTERNAL_FLAG_TAINTED 0x02
32 #define FR_INTERNAL_FLAG_UNKNOWN 0x80
33 #define FR_INTERNAL_FLAG_INTERNAL 0x40
58 uint8_t const *
data,
size_t data_len,
void *decode_ctx);
ssize_t fr_internal_decode_list_dbuff(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, fr_dbuff_t *dbuff, void *decode_ctx)
Retrieve all pairs from the dbuff.
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.
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.
ssize_t fr_internal_decode_pair_dbuff(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, fr_dbuff_t *dbuff, void *decode_ctx)
bool allow_name_only
Allow name only pairs.
ssize_t fr_internal_decode_pair(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t data_len, void *decode_ctx)
Create a single fr_pair_t and all its nesting.
static fr_internal_encode_ctx_t encode_ctx
static size_t char ** out