radcli_ctx_..._dictionary(3)
π NAME π
radcli_ctx_read_dictionary β load an additional attribute dictionary, bestie. Thatβs the whole vibe. β¨
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_ctx_read_dictionary(
radcli_ctx *ctx,
const char *path
);
π¦ DESCRIPTION π¦
Okay so picture this: radcli_ctx_read_dictionary parses path β like, the actual ATTRIBUTE/VALUE/VENDOR lines using radcliβs dictionary grammar β straight into ctxβs dictionary. Obsessed. π
It is not needed for the common case, because radcli_ctx_read_config() already loads the fileβs own dictionary= option. So donβt stress about it for the usual setup, fr fr.
Where it is useful? The programmatic ("backup") construction path, or when you wanna load more than one supplemental dictionary. Main character energy for extra dictionaries only. π
π PARAMETERS π
ctxβ a context fromradcli_ctx_new()orradcli_ctx_read_config(). Gotta have your context, bestie.pathβ path to the dictionary file. Literally the file path. No cap.
β RETURN VALUE β
0on success. Slay. β-1on failure. And the failure cases are: an unreadable file, or a parse error β including a conflicting redefinition of an already-loaded attribute. Yeah, that last one is giving βwe already have that at homeβ energy, and it is not a success. π
π 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)
mwah π this radcli_ctx_..._dictionary(3) page is from the Radius client library, and the cute little footer situation says source/version radcli with date 2026-10-10. Byeee π«Ά
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms