The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/util/dcursor.h>
#include <freeradius-devel/util/pair.h>
#include "proto.h"
#include "pair.h"
Go to the source code of this file.
Data Structures | |
struct | fr_test_point_pair_decode_t |
Entry point for pair decoders. More... | |
struct | fr_test_point_pair_encode_t |
Entry point for pair encoders. More... | |
struct | fr_test_point_proto_decode_t |
Entry point for protocol decoders. More... | |
struct | fr_test_point_proto_encode_t |
Entry point for protocol encoders. More... | |
Typedefs | |
typedef int(* | fr_test_point_ctx_alloc_t) (void **out, TALLOC_CTX *ctx, fr_dict_t const *dict) |
Allocate an encoder/decoder ctx. | |
typedef 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. | |
typedef 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. | |
struct fr_test_point_pair_decode_t |
Entry point for pair decoders.
Definition at line 84 of file test_point.h.
Data Fields | ||
---|---|---|
fr_pair_decode_t | func | Decoder for pairs. |
fr_test_point_ctx_alloc_t | test_ctx | Allocate a test ctx for the encoder. |
struct fr_test_point_pair_encode_t |
Entry point for pair encoders.
Definition at line 92 of file test_point.h.
Data Fields | ||
---|---|---|
fr_dcursor_eval_t | eval | Evaluation function to filter attributes to encode. |
fr_pair_encode_t | func | Encoder for pairs. |
fr_dcursor_iter_t | next_encodable | Iterator to use to select attributes to encode. |
fr_test_point_ctx_alloc_t | test_ctx | Allocate a test ctx for the encoder. |
struct fr_test_point_proto_decode_t |
Entry point for protocol decoders.
Definition at line 66 of file test_point.h.
Data Fields | ||
---|---|---|
fr_tp_proto_decode_t | func | Decoder for proto layer. |
fr_test_point_ctx_alloc_t | test_ctx | Allocate a test ctx for the encoder. |
struct fr_test_point_proto_encode_t |
Entry point for protocol encoders.
Definition at line 74 of file test_point.h.
Data Fields | ||
---|---|---|
fr_dcursor_eval_t | eval | Evaluation function to filter attributes to encode. |
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. |
Allocate an encoder/decoder ctx.
[out] | out | Where the decoder context should be written. |
[in] | ctx | to allocate the test point context in. |
[in] | dict | the default dictionary context for the test point |
Definition at line 29 of file test_point.h.
typedef 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.
A decoding function should decode a single top level packet from wire format.
[in] | ctx | to allocate new pairs in. |
[in] | list | where new VPs will be added |
[in] | data | to decode. |
[in] | data_len | The length of the incoming data. |
[in] | decode_ctx | Any decode specific data such as secrets or configurable. |
Definition at line 44 of file test_point.h.
typedef 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.
An encoding function should encode multiple VPs to a wire format packet
[in] | ctx | to allocate any data in |
[in] | vps | vps to encode |
[in] | data | buffer where data can be written |
[in] | data_len | The length of the buffer, i.e. maximum packet length |
[in] | encode_ctx | Any enccode specific data such as secrets or configurable. |
Definition at line 60 of file test_point.h.