radcli_ctx_apply(3) Radius client library radcli_ctx_apply(3)

radcli_ctx_apply - Validate the options set so far and initialise the transport.

#include <radcli/>

int radcli_ctx_apply(
    radcli_ctx  *ctx
);

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.

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

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

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)

2026-09-03 radcli