radcli_dict_lookup_value(3)

radcli_dict_lookup_value3

Resolve a dictionary value by name, scoped to one attribute.

Usage

#include <radcli/>

int radcli_dict_lookup_value(
    const radcli_ctx       *ctx,
    const radcli_attr_def  *def,
    const char             *name,
    uint32_t               *out
);

Overview

The runtime, VALUE-name counterpart to radcli_dict_lookup(): covers a vendor-specific or supplemental-dictionary VALUE with no compiled-in constant in radcli-defs.h (which only covers RFC 2865/2866/2869 standard VALUEs). A VALUE name is only meaningful together with the attribute it was defined under two different attributes may each define a VALUE named e.g. "Yes" so def fixes that scope, the same way radcli_dict_value_by_attr()/rc_dict_getval() already scope a numeric VALUE lookup by attribute rather than matching across the whole dictionary.

Parameters

ctx

a context with a dictionary loaded.

def

the attribute the VALUE belongs to, from radcli_dict_lookup() or a sibling.

name

the VALUE's name, as it appears in a VALUE dictionary line.

out

the VALUE's numeric value, set only on success.

Return value

0 on success, -1 if ctx/def/name/out is NULL or no such VALUE is defined for def.

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