radcli_ctx_read_dictionary - Man Page

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

ctx

a context from radcli_ctx_new() or radcli_ctx_read_config().

path

path to the dictionary file.

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)

Info

2026-09-03 radcli Radius client library