radcli_ctx_get_opt_str(3)

radcli_ctx_get_opt_str3

Read back a string-typed configuration option.

Usage

#include <radcli/>

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

Overview

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.

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.