.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_ctx_apply 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_ctx_apply \- Validate the options set so far and initialise the transport. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_ctx_apply\fP( \fBradcli_ctx *\fP\fIctx\fP ); .fi .SH DESCRIPTION .PP 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. .SH PARAMETERS .TP .B ctx a context configured via radcli_ctx_set_opt_str()/_set_opt_int(). .SH RETURN VALUE .PP 0 on success, -1 on failure (e.g. no authserver configured, or an invalid radius_timeout/radius_retries). .SH SEE ALSO .PP .nh .ad l \fIradcli_ctx_free\fP(3), \fIradcli_ctx_get_opt_int\fP(3), \fIradcli_ctx_get_opt_str\fP(3), \fIradcli_ctx_new\fP(3), \fIradcli_ctx_read_config\fP(3), \fIradcli_ctx_read_dictionary\fP(3), \fIradcli_ctx_read_dictionary_from_buffer\fP(3), \fIradcli_ctx_set_opt_int\fP(3), \fIradcli_ctx_set_opt_str\fP(3), \fIradcli_ctx_set_secret\fP(3), \fIradcli_ctx_set_tls_psk\fP(3) .ad .hy