AVP manipulation and search API.
More...
#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
#include <freeradius-devel/protocol/radius/rfc2865.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
Go to the source code of this file.
|
int | fr_pair_list_afrom_file (TALLOC_CTX *ctx, fr_dict_t const *dict, fr_pair_list_t *out, FILE *fp, bool *pfiledone) |
| Read valuepairs from the fp up to End-Of-File. More...
|
|
fr_slen_t | fr_pair_list_afrom_substr (fr_pair_parse_t const *root, fr_pair_parse_t *relative, fr_sbuff_t *in) |
| Parse a fr_pair_list_t from a substring. More...
|
|
void | fr_pair_list_move_op (fr_pair_list_t *to, fr_pair_list_t *from, fr_token_t op) |
| Move pairs from source list to destination list respecting operator. More...
|
|
static ssize_t | fr_pair_value_from_substr (fr_pair_t *vp, fr_sbuff_t *in, bool tainted) |
|
AVP manipulation and search API.
- Copyright
- 2000,2006,2015 The FreeRADIUS server project
Definition in file pair_legacy.c.
◆ fr_pair_list_afrom_file()
Read valuepairs from the fp up to End-Of-File.
- Parameters
-
[in] | ctx | for talloc |
[in] | dict | to resolve attributes in. |
[in,out] | out | where the parsed fr_pair_ts will be appended. |
[in] | fp | to read valuepairs from. |
[out] | pfiledone | true if file parsing complete; |
- Returns
-
Definition at line 648 of file pair_legacy.c.
◆ fr_pair_list_afrom_substr()
Parse a fr_pair_list_t from a substring.
- Parameters
-
[in] | root | where we start parsing from |
[in,out] | relative | where we left off, or where we should continue from |
[in] | in | input sbuff |
- Returns
- <0 on error
- 0 on no input
- >0 on how many bytes of input we read
Definition at line 150 of file pair_legacy.c.
◆ fr_pair_list_move_op()
Move pairs from source list to destination list respecting operator.
- Note
- This function does some additional magic that's probably not needed in most places. Consider using radius_legacy_map_cmp() and radius_legacy_map_apply() instead.
-
fr_pair_list_free should be called on the head of the source list to free unmoved attributes (if they're no longer needed).
- Parameters
-
[in,out] | to | destination list. |
[in,out] | from | source list. |
[in] | op | operator for list move. |
Definition at line 727 of file pair_legacy.c.
◆ fr_pair_value_from_substr()
◆ bareword_terminals
Initial value:=
)
#define L(_str)
Helper for initialising arrays of string literals.
#define FR_SBUFF_TERMS(...)
Initialise a terminal structure with a list of sorted strings.
Definition at line 36 of file pair_legacy.c.
◆ bareword_unquoted
fr_sbuff_parse_rules_t const bareword_unquoted |
|
static |
◆ pair_assignment_op_table
◆ pair_assignment_op_table_len
◆ pair_comparison_op_table
◆ pair_comparison_op_table_len