.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_ctx_get_opt_str 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_ctx_get_opt_str \- Read back a string-typed configuration option. .SH SYNOPSIS .nf .B #include .sp \fBconst char * radcli_ctx_get_opt_str\fP( \fBconst radcli_ctx *\fP\fIctx\fP, \fBradcli_opt_id \fP\fIopt\fP ); .fi .SH DESCRIPTION .PP Unlike radcli_ctx_set_opt_str(), only valid for an RADCLI_OPT_TYPE_STR opt #RADCLI_OPT_AUTHSERVER/#RADCLI_OPT_ACCTSERVER (RADCLI_OPT_TYPE_SRV) store a parsed server list, not a string, so are not readable through this call. .SH PARAMETERS .TP .B ctx a context from radcli_ctx_new() or radcli_ctx_read_config(). .TP .B opt the option to read; MUST be RADCLI_OPT_TYPE_STR in RC_OPTION_TABLE (e.g. #RADCLI_OPT_DEFAULT_REALM, #RADCLI_OPT_DICTIONARY). .SH RETURN VALUE .PP the option's value, or NULL if unset, ctx is NULL, opt is out of range, or opt is not RADCLI_OPT_TYPE_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_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