radcli_ctx_read_dictionary(3)

radcli_ctx_read_dictionary3

Load an additional attribute dictionary.

Usage

#include <radcli/>

int radcli_ctx_read_dictionary(
    radcli_ctx  *ctx,
    const char  *path
);

Overview

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).

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.