radcli_ctx_...from_buffer(3)
π radcli_ctx_read_dictionary_from_buffer(3) π
okay so bestie, you've landed on the Radius client library page titled radcli_ctx_...from_buffer(3) β and no cap, this little helper is lowkey iconic. It's giving "dictionary text already in memory, let's go" energy. β¨
πΈ NAME πΈ
radcli_ctx_read_dictionary_from_buffer β load an additional attribute dictionary from an in-memory buffer. π§ π
π¦ SYNOPSIS π¦
#include <radcli/>
int radcli_ctx_read_dictionary_from_buffer(
radcli_ctx *ctx,
const char *buf,
size_t size
);
π DESCRIPTION π
This is the from-buffer counterpart to radcli_ctx_read_dictionary() β for a caller that already has dictionary text in memory rather than in a file (e.g. a small, program-defined supplemental dictionary). The way that it was added so a radcli2.h-only caller is not forced to reach into radcli.h's rc_read_dictionary_from_buffer() for this one operation? Obsessed. π
π PARAMETERS π
ctxβ a context fromradcli_ctx_new()orradcli_ctx_read_config().bufβ the dictionary text.sizeβbuf's length in bytes.
π₯ RETURN VALUE π₯
0on success. slay. β-1on failure β that's a parse error, including a conflicting redefinition of an already-loaded attribute. ππ
π«Ά SEE ALSO π«Ά
go give these a vibe check too, bestie:
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(3)radcli_ctx_set_opt_int(3)radcli_ctx_set_opt_str(3)radcli_ctx_set_secret(3)radcli_ctx_set_tls_psk(3)
xoxo, ur fav man page π
β source/version: radcli, date: 2026-10-10, and yes it's the radcli_ctx_...from_buffer(3) page. 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