radcli_ctx_apply(3)
π radcli_ctx_apply β the "okay bestie, lock it in" moment
So like, this page lives in section 3 of the Radius client library manpages, and honestly? It's giving finishing touches. Let's get into it. β¨
β¨ NAME β¨
radcli_ctx_apply β bestie, this is the one that validates all the options you've set so far and then initialises the transport. No cap, that's the whole job. π
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_ctx_apply(
radcli_ctx *ctx
);
π¦ DESCRIPTION π¦
Okay so here's the tea: you call this once β literally once, and after you've made all your radcli_ctx_set_opt_str() / _set_opt_int() calls for ctx. What it does is activate the configuration, and like... ctx is not usable for a request before this succeeds. That's the vibe check. Fail it and your context is just sitting there, unconfigured, not doing main character energy. π
Also important, and I cannot stress this enough: radcli_ctx_read_config() calls this internally. So if you got your context that way, do not call it again on that context. It's already been applied. Periodt. π
π PARAMETERS π
ctxβ a context that you configured viaradcli_ctx_set_opt_str()/_set_opt_int(). That's it, that's the parameter. π«Ά
β RETURN VALUE β
0on success β slay, you can go make requests now π₯-1on failure β like when there's noauthserverconfigured, orradius_timeout/radius_retriesare invalid π
π SEE ALSO π
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_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)
okay that's the whole page bestie, ily, go apply your context π
This iconic little number is brought to you by radcli, dated 2026-10-10. Go forth and configure responsibly. π§π
π¦ 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