.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_ctx_set_opt_int 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_ctx_set_opt_int \- Set an integer-typed configuration option. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_ctx_set_opt_int\fP( \fBradcli_ctx *\fP\fIctx\fP, \fBradcli_opt_id \fP\fIopt\fP, \fBlong \fP\fIval\fP ); .fi .SH DESCRIPTION .SH PARAMETERS .TP .B ctx a context from radcli_ctx_new(). .TP .B opt the option to set; MUST be RADCLI_OPT_TYPE_INT in RC_OPTION_TABLE (e.g. #RADCLI_OPT_RADIUS_TIMEOUT, #RADCLI_OPT_RADIUS_RETRIES). .TP .B val the value. .SH RETURN VALUE .PP 0 on success, -1 on failure (as radcli_ctx_set_opt_str()). .SH SEE ALSO .PP .nh .ad l \fIradcli_ctx_apply\fP(3), \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_str\fP(3), \fIradcli_ctx_set_secret\fP(3), \fIradcli_ctx_set_tls_psk\fP(3) .ad .hy