radcli_ctx_apply(3)

radcli_ctx_apply3

Validate the options set so far and initialise the transport.

Usage

#include <radcli/>

int radcli_ctx_apply(
    radcli_ctx  *ctx
);

Overview

Call once, after all radcli_ctx_set_opt_str()/_set_opt_int() calls for ctx have been made, to activate the configuration ctx is not usable for a request before this succeeds. radcli_ctx_read_config() calls this internally; do not call it again on a context obtained that way.

Parameters

ctx

a context configured via radcli_ctx_set_opt_str()/_set_opt_int().

Return value

0 on success, -1 on failure (e.g. no authserver configured, or an invalid radius_timeout/radius_retries).

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