|
static ssize_t | attr_fragment (fr_dbuff_t *data, size_t data_len, fr_dbuff_marker_t *hdr, size_t hdr_len, int flag_offset, int vsa_offset) |
| Breaks down large data into pieces, each with a header. More...
|
|
static ssize_t | encode_child (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode an RFC format attribute. More...
|
|
static ssize_t | encode_concat (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, UNUSED void *encode_ctx) |
| Encode an RFC format attribute, with the "concat" flag set. More...
|
|
static ssize_t | encode_extended (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, NDEBUG_UNUSED unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode an "extended" attribute. More...
|
|
static ssize_t | encode_extended_nested (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
|
static ssize_t | encode_nas_filter_rule (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, NDEBUG_UNUSED unsigned int depth, fr_dcursor_t *cursor, UNUSED void *encode_ctx) |
| Encode NAS-Filter-Rule. More...
|
|
static ssize_t | encode_pairs (fr_dbuff_t *dbuff, fr_pair_list_t const *vps, void *encode_ctx) |
|
static ssize_t | encode_password (fr_dbuff_t *dbuff, fr_dbuff_marker_t *input, size_t inlen, fr_radius_encode_ctx_t *packet_ctx) |
| "encrypt" a password RADIUS style More...
|
|
static ssize_t | encode_rfc (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode an RFC standard attribute 1..255. More...
|
|
static int | encode_test_ctx (void **out, TALLOC_CTX *ctx) |
|
static ssize_t | encode_tlv (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
|
static ssize_t | encode_tunnel_password (fr_dbuff_t *dbuff, fr_dbuff_marker_t *in, size_t inlen, fr_radius_encode_ctx_t *packet_ctx) |
|
static ssize_t | encode_value (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encodes the data portion of an attribute. More...
|
|
static ssize_t | encode_vendor (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
|
static ssize_t | encode_vendor_attr (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode one full Vendor-Specific + Vendor-ID + Vendor-Attr + Vendor-Length + ... More...
|
|
static ssize_t | encode_vsa (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode a Vendor-Specific attribute. More...
|
|
static ssize_t | encode_wimax (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode a WiMAX attribute. More...
|
|
ssize_t | fr_radius_encode_foreign (fr_dbuff_t *dbuff, fr_pair_list_t const *list) |
|
ssize_t | fr_radius_encode_pair (fr_dbuff_t *dbuff, fr_dcursor_t *cursor, void *encode_ctx) |
| Encode a data structure into a RADIUS attribute. More...
|
|
static ssize_t | fr_radius_encode_proto (TALLOC_CTX *ctx, fr_pair_list_t *vps, uint8_t *data, size_t data_len, void *proto_ctx) |
|
void * | fr_radius_next_encodable (fr_dlist_head_t *list, void *to_eval, void *uctx) |
|
Functions to encode RADIUS attributes.
- Id
- fbda2418d7687f942cd70f4ff82a5d3f5a90d1be
- Copyright
- 2000-2003,2006-2015 The FreeRADIUS server project
Definition in file encode.c.
Encode an RFC format attribute, with the "concat" flag set.
If there isn't enough freespace in the packet, the data is truncated to fit.
The attribute is split on 253 byte boundaries, with a header prepended to each chunk.
Definition at line 891 of file encode.c.