radcli_ctx_get_opt_str(3) Radius client library radcli_ctx_get_opt_str(3)

radcli_ctx_get_opt_str - Read back a string-typed configuration option.

#include <radcli/>

const char * radcli_ctx_get_opt_str(
    const radcli_ctx  *ctx,
    radcli_opt_id      opt
);

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.

a context from radcli_ctx_new() or radcli_ctx_read_config().
the option to read; MUST be RADCLI_OPT_TYPE_STR in RC_OPTION_TABLE (e.g. #RADCLI_OPT_DEFAULT_REALM, #RADCLI_OPT_DICTIONARY).

the option's value, or NULL if unset, ctx is NULL, opt is out of range, or opt is not RADCLI_OPT_TYPE_STR.

radcli_ctx_apply(3), radcli_ctx_free(3), radcli_ctx_get_opt_int(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)

2026-09-03 radcli