| radcli_dict_lookup_value(3) | Radius client library | radcli_dict_lookup_value(3) |
NAME
radcli_dict_lookup_value - Resolve a dictionary VALUE by name, scoped to one attribute.
SYNOPSIS
#include <radcli/>
int radcli_dict_lookup_value(
const radcli_ctx *ctx,
const radcli_attr_def *def,
const char *name,
uint32_t *out
);
DESCRIPTION
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
RETURN VALUE
0 on success, -1 if ctx/def/name/out is NULL or no such VALUE is defined for def.
SEE ALSO
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 |