radcli_ctx_read_config(3)
πΈ NAME
Okay so this is radcli_ctx_read_config(3), from the Radius client library manual, and it's the create-a-context-by-parsing-a-config-file function. Fr fr it's the main, recommended way to configure radcli. π
β¨ SYNOPSIS
#include <radcli/>
radcli_ctx * radcli_ctx_read_config(
const char *filename,
unsigned flags
);
π DESCRIPTION
It parses filename, validates every single option, initialises the transport β including the TLS/DTLS handshake for TLS/DTLS transports, no cap β and loads the built-in RFC 2865/2866/2869 dictionary plus the file's own dictionary= option, if set. That means radcli_ctx_read_dictionary() need not be called separately for the common case, unless RADCLI_CTX_NO_BUILTIN_DICT is set in flags. β¨
It uses the same file format and recognised options as radcli.h's rc_read_config(), so an existing radiusclient.conf written for the legacy API loads unchanged. Iconic behavior, honestly. π¦
π PARAMETERS
filenameβ path to the configuration file. Simple as that. πflagsβ a bitwise OR ofradcli_ctx_flags, or0for the common case. Slay. π
π«Ά RETURN VALUE
Returns the new context, or NULL on failure (missing/unreadable file, invalid option, an unknown flags bit, or transport initialisation failure). Like, if something's off, you get NULL, not a vibe. π
π 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_dictionary(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)
That's the whole page, bestie. This absolute icon ships with radcli, dated 2026-10-10, and its page is radcli_ctx_read_config(3). Periodt. π
π¦ 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