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