17 #include <freeradius-devel/util/dcursor.h>
18 #include <freeradius-devel/util/pair.h>
64 uint8_t const *
data,
size_t data_len,
void *decode_ctx);
bool(* fr_dcursor_eval_t)(void const *item, void const *uctx)
Type of evaluation functions to pass to the fr_dcursor_filter_*() functions.
void *(* fr_dcursor_iter_t)(fr_dlist_head_t *list, void *to_eval, void *uctx)
Callback for implementing custom iterators.
ssize_t(* fr_pair_encode_t)(fr_dbuff_t *out, fr_dcursor_t *cursor, void *encode_ctx)
Generic interface for encoding one or more fr_pair_ts.
ssize_t(* fr_pair_decode_t)(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)
A generic interface for decoding fr_pair_ts.
static fr_internal_encode_ctx_t encode_ctx
fr_test_point_ctx_alloc_t test_ctx
Allocate a test ctx for the encoder.
fr_tp_proto_decode_t func
Decoder for proto layer.
int(* fr_test_point_ctx_alloc_t)(void **out, TALLOC_CTX *ctx)
Allocate an encoder/decoder ctx.
fr_dcursor_eval_t eval
Evaluation function to filter attributes to encode.
fr_dcursor_eval_t eval
Evaluation function to filter attributes to encode.
ssize_t(* fr_tp_proto_encode_t)(TALLOC_CTX *ctx, fr_pair_list_t *vps, uint8_t *data, size_t data_len, void *encode_ctx)
A generic interface for encoding fr_pair_ts to packets.
fr_test_point_ctx_alloc_t test_ctx
Allocate a test ctx for the encoder.
fr_dcursor_iter_t next_encodable
Iterator to use to select attributes to encode.
ssize_t(* fr_tp_proto_decode_t)(TALLOC_CTX *ctx, fr_pair_list_t *list, uint8_t const *data, size_t data_len, void *decode_ctx)
A generic interface for decoding packets to fr_pair_ts.
fr_tp_proto_encode_t func
Encoder for proto layer.
fr_test_point_ctx_alloc_t test_ctx
Allocate a test ctx for the encoder.
fr_pair_decode_t func
Decoder for pairs.
fr_pair_encode_t func
Encoder for pairs.
decode_fail_t
Failure reasons.
@ DECODE_FAIL_INVALID_ATTRIBUTE
@ DECODE_FAIL_ATTRIBUTE_UNDERFLOW
@ DECODE_FAIL_MIN_LENGTH_FIELD
@ DECODE_FAIL_HEADER_OVERFLOW
@ DECODE_FAIL_ATTRIBUTE_TOO_SHORT
@ DECODE_FAIL_ATTRIBUTE_OVERFLOW
@ DECODE_FAIL_TOO_MANY_ATTRIBUTES
@ DECODE_FAIL_MIN_LENGTH_PACKET
@ DECODE_FAIL_MIN_LENGTH_MISMATCH
@ DECODE_FAIL_MA_INVALID_LENGTH
@ DECODE_FAIL_UNKNOWN_PACKET_CODE
fr_test_point_ctx_alloc_t test_ctx
Allocate a test ctx for the encoder.
Entry point for pair decoders.
Entry point for pair encoders.
Entry point for protocol decoders.
Entry point for protocol encoders.
AVP manipulation and search API.
Protocol encoder/decoder support functions.
static size_t char ** out