radcli_dae_new(3)

radcli_dae_new3

Validate dae-* configuration and build a dynamic-authorization listener. opens no socket see radcli_dae_start().

Usage

#include <radcli/>

radcli_dae * radcli_dae_new(
    radcli_ctx  *ctx,
    unsigned     flags
);

Overview

Fails (returns NULL) unless dae-accept is "yes" or "udp", so that a library upgrade never silently exposes a session-terminating channel in an application that did not opt in. When enabled, 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.

Parameters

ctx

a configured context (rc_read_config()/rc_apply_config() already called).

flags

a bitwise OR of radcli_dae_flags, or 0 for the common case.

Return value

a new listener, or NULL on invalid configuration or an unknown flags bit.

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.