NAME
radcli_ctx_get_opt_str - Read back a string-typed configuration option.
SYNOPSIS
#include <radcli/>
const char * radcli_ctx_get_opt_str(
const radcli_ctx *ctx,
radcli_opt_id opt
);
DESCRIPTION
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.
PARAMETERS
- ctx
-
a context from radcli_ctx_new() or radcli_ctx_read_config().
- opt
-
the option to read; MUST be RADCLI_OPT_TYPE_STR in RC_OPTION_TABLE (e.g. #RADCLI_OPT_DEFAULT_REALM, #RADCLI_OPT_DICTIONARY).
RETURN VALUE
the option's value, or NULL if unset, ctx is NULL, opt is out of range, or opt is not RADCLI_OPT_TYPE_STR.
SEE ALSO
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)