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
|
a context from radcli_ctx_new() or radcli_ctx_read_config(). |
|---|---|
|
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).