#include <freeradius-devel/server/log.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/users_file.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/syserror.h>
#include <sys/stat.h>
#include <ctype.h>
#include <fcntl.h>
Go to the source code of this file.
|
#define | ERROR_MARKER(_sbuff, _error) line_error_marker(__FILE__, __LINE__, file, lineno, _sbuff, _error) |
| Print out a line oriented error marker at the current position of the sbuff. More...
|
|
#define | ERROR_MARKER_ADJ(_sbuff, _idx, _error) line_error_marker_adj(__FILE__, __LINE__, file, lineno, _sbuff, _idx, _error) |
| Print out a line oriented error marker relative to the current position of the sbuff. More...
|
|
|
static void | line_error_marker (char const *src_file, int src_line, char const *user_file, int user_line, fr_sbuff_t *sbuff, char const *error) |
|
static void | line_error_marker_adj (char const *src_file, int src_line, char const *user_file, int user_line, fr_sbuff_t *sbuff, ssize_t marker_idx, char const *error) |
|
int | pairlist_read (TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR_LIST_LIST *list) |
|
static int | pairlist_read_internal (TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR_LIST_LIST *list, bool complain, int *order) |
|
static int | users_include (TALLOC_CTX *ctx, fr_dict_t const *dict, fr_sbuff_t *sbuff, PAIR_LIST_LIST *list, char const *file, int lineno, int *order) |
|
◆ ERROR_MARKER
Print out a line oriented error marker at the current position of the sbuff.
- Parameters
-
[in] | _sbuff | to print error for. |
[in] | _error | message. |
Definition at line 65 of file users_file.c.
◆ ERROR_MARKER_ADJ
Print out a line oriented error marker relative to the current position of the sbuff.
- Parameters
-
[in] | _sbuff | to print error for. |
[in] | _idx | Where the error occurred. |
[in] | _error | message. |
Definition at line 90 of file users_file.c.
◆ line_error_marker()
static void line_error_marker |
( |
char const * |
src_file, |
|
|
int |
src_line, |
|
|
char const * |
user_file, |
|
|
int |
user_line, |
|
|
fr_sbuff_t * |
sbuff, |
|
|
char const * |
error |
|
) |
| |
|
inlinestatic |
◆ line_error_marker_adj()
static void line_error_marker_adj |
( |
char const * |
src_file, |
|
|
int |
src_line, |
|
|
char const * |
user_file, |
|
|
int |
user_line, |
|
|
fr_sbuff_t * |
sbuff, |
|
|
ssize_t |
marker_idx, |
|
|
char const * |
error |
|
) |
| |
|
inlinestatic |
◆ pairlist_read()
◆ pairlist_read_internal()
static int pairlist_read_internal |
( |
TALLOC_CTX * |
ctx, |
|
|
fr_dict_t const * |
dict, |
|
|
char const * |
file, |
|
|
PAIR_LIST_LIST * |
list, |
|
|
bool |
complain, |
|
|
int * |
order |
|
) |
| |
|
static |
◆ users_include()
◆ check_cmp_op_table
Initial value:= {
}
#define L(_str)
Helper for initialising arrays of string literals.
Definition at line 92 of file users_file.c.
◆ check_cmp_op_table_len
◆ name_terms
Initial value:
)
#define FR_SBUFF_TERMS(...)
Initialise a terminal structure with a list of sorted strings.
Definition at line 109 of file users_file.c.
◆ rhs_term
fr_sbuff_parse_rules_t const rhs_term |
|
static |
Initial value:= {
.chr = '\\',
.subs = {
['\t'] = '\t',
['\n'] = '\n',
[' '] = ' '
},
.do_hex = true,
.do_oct = false
},
)
}
Set of parsing rules for *unescape_until functions.
Definition at line 116 of file users_file.c.