| radcli_ctx_read_dictionary(3) | Radius client library | radcli_ctx_read_dictionary(3) |
NAME
radcli_ctx_read_dictionary - Load an additional attribute dictionary.
SYNOPSIS
#include <radcli/>
int radcli_ctx_read_dictionary(
radcli_ctx *ctx,
const char *path
);
DESCRIPTION
Parses path (ATTRIBUTE/VALUE/VENDOR lines, radcli's dictionary grammar) into ctx's dictionary. Not needed for the common case: radcli_ctx_read_config() already loads the file's own dictionary= option. Useful for the programmatic ("backup") construction path, or to load more than one supplemental dictionary.
PARAMETERS
RETURN VALUE
0 on success, -1 on failure (unreadable file, or a parse error including a conflicting redefinition of an already-loaded attribute).
SEE ALSO
radcli_ctx_apply(3), radcli_ctx_free(3), radcli_ctx_get_opt_int(3), radcli_ctx_get_opt_str(3), radcli_ctx_new(3), radcli_ctx_read_config(3), radcli_ctx_read_dictionary_from_buffer(3), radcli_ctx_set_opt_int(3), radcli_ctx_set_opt_str(3), radcli_ctx_set_secret(3), radcli_ctx_set_tls_psk(3)
| 2026-09-03 | radcli |