radcli_dict_lookup_value(3) Radius client library radcli_dict_lookup_value(3)

radcli_dict_lookup_value - Resolve a dictionary VALUE by name, scoped to one attribute.

#include <radcli/>

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

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.

a context with a dictionary loaded.
the attribute the VALUE belongs to, from radcli_dict_lookup() or a sibling.
the VALUE's name, as it appears in a VALUE dictionary line.
the VALUE's numeric value, set only on success.

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

radcli_attr_def_name(3), radcli_attr_def_oid(3), radcli_attr_def_type(3), radcli_dict_lookup(3), radcli_dict_lookup_num(3), radcli_dict_lookup_oid(3)

2026-09-03 radcli