radcli_dae_new(3)
β¨ radcli_dae_new(3) β build a dynamic-authorization listener, but make it not-open-a-socket-yet β¨
Okay bestie, this is the Radius client library setup era: radcli_dae_new(3) validates your dae-* configuration and builds a dynamic-authorization listener. It opens no socket β that is radcli_dae_start()'s whole job, iykyk. π«Ά
π NAME π
radcli_dae_new β validate dae-* configuration and build a dynamic-authorization listener. Opens no socket; see radcli_dae_start().
πΈ SYNOPSIS πΈ
#include <radcli/>
radcli_dae * radcli_dae_new(
radcli_ctx *ctx,
unsigned flags
);
π¦ DESCRIPTION π¦
Fails β as in returns NULL β unless dae-accept is "yes" or "udp". This is the safety lock so that a library upgrade never silently exposes a session-terminating channel in an application that did not opt in. No cap, that is a very good lock. π₯
When it is enabled, it also fails unless both dae-server and dae-secret are set, and unless every dae-server entry resolves and carries no network prefix.
At most one radcli_dae may be active on a given ctx at a time, since radcli_ctx_get_poll()/radcli_ctx_dispatch() operate on ctx and need a single descriptor to report. One listener per ctx, bestie β that is the vibe check. π
π PARAMETERS π
ctxβ a configured context (rc_read_config()/rc_apply_config()already called).flagsβ a bitwise OR ofradcli_dae_flags, or0for the common case.
π RETURN VALUE π
Returns a new listener, or NULL on invalid configuration or an unknown flags bit. π
π SEE ALSO π
radcli_ctx_dispatch(3)radcli_ctx_get_poll(3)radcli_dae_free(3)radcli_dae_process(3)radcli_dae_reply(3)radcli_dae_reply_error(3)radcli_dae_reply_to_buffer(3)radcli_dae_req_attrs(3)radcli_dae_req_code(3)radcli_dae_req_framed_ip(3)radcli_dae_req_nas_port(3)radcli_dae_req_session_id(3)radcli_dae_req_user_name(3)radcli_dae_request_free(3)radcli_dae_set_handler(3)radcli_dae_start(3)
Thatβs the whole glow-up: source/version radcli, dated 2026-10-10 β manual page radcli_dae_new(3), signing off. π
β¨
π¦ 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