radcli_ctx_apply - Man Page

Validate the options set so far and initialise the transport.

Synopsis

#include <radcli/>

int radcli_ctx_apply(
    radcli_ctx  *ctx
);

Description

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).

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)

Info

2026-09-03 radcli Radius client library