Functions to decode 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/proto.h>
#include <freeradius-devel/util/types.h>
Go to the source code of this file.
|
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. More...
|
|
ssize_t | fr_internal_decode_pair (TALLOC_CTX *ctx, fr_pair_list_t *list, 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. More...
|
|
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) |
|
static ssize_t | internal_decode_pair (TALLOC_CTX *ctx, fr_pair_list_t *head, fr_dict_attr_t const *parent_da, fr_dbuff_t *dbuff, void *decode_ctx) |
|
static ssize_t | internal_decode_pair_value (TALLOC_CTX *ctx, fr_pair_list_t *head, fr_dict_attr_t const *parent_da, fr_dbuff_t *dbuff, bool tainted, UNUSED void *decode_ctx) |
| Decodes the value of an attribute, potentially producing a pair (added to the cursor) More...
|
|
static ssize_t | internal_decode_structural (TALLOC_CTX *ctx, fr_pair_list_t *head, fr_dict_attr_t const *parent_da, fr_dbuff_t *dbuff, void *decode_ctx) |
| Decode a group. More...
|
|
Functions to decode data in our internal structure.
- Id
- 8d760f5ff16ab33d9abcfef8805fb14375a9eb10
Because what we need is yet ANOTHER serialisation scheme.
- Copyright
- 2020 The FreeRADIUS server project
-
2020 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file decode.c.
◆ fr_internal_decode_list_dbuff()
Retrieve all pairs from the dbuff.
- Parameters
-
ctx | to create new pairs in |
out | list to append pairs to |
parent | attribute within which which to decode |
dbuff | to parse |
decode_ctx | to pass to decoder function |
- Returns
- bytes of dbuff consumed
- < 0 on error
Definition at line 310 of file decode.c.
◆ fr_internal_decode_pair()
Create a single fr_pair_t and all its nesting.
Definition at line 273 of file decode.c.
◆ fr_internal_decode_pair_dbuff()
◆ internal_decode_pair()
◆ internal_decode_pair_value()
Decodes the value of an attribute, potentially producing a pair (added to the cursor)
Definition at line 41 of file decode.c.
◆ internal_decode_structural()
Decode a group.
Definition at line 69 of file decode.c.
◆ internal_tp_decode_pair
Initial value:= {
.test_ctx = NULL,
}
ssize_t fr_internal_decode_pair(TALLOC_CTX *ctx, fr_pair_list_t *list, 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.
Definition at line 329 of file decode.c.