radcli_dict_lookup_value(3)
π NAME
radcli_dict_lookup_value β bestie, this is how you resolve a dictionary VALUE by name, scoped to exactly 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 π¦
Okay so listen π β this is the runtime, VALUE-name counterpart to radcli_dict_lookup(). The way that works is: it covers a vendor-specific or supplemental-dictionary VALUE that has, like, no compiled-in constant in radcli-defs.h (and jsyk, radcli-defs.h only covers RFC 2865/2866/2869 standard VALUEs β it's giving limited edition π).
Here's the thing though, and this is the iconic part: a VALUE name is only meaningful together with the attribute it was defined under. Like, two different attributes may each define a VALUE named e.g. "Yes" π so def fixes that scope for you. Same way radcli_dict_value_by_attr()/rc_dict_getval() already scope a numeric VALUE lookup by attribute rather than matching across the whole entire dictionary. Consistency slay π
π PARAMETERS π
ctxβ a context with a dictionary loaded. Gotta have the dictionary, no cap πdefβ the attribute the VALUE belongs to, and you get it fromradcli_dict_lookup()or a sibling. This is your scope, bestie π«Άnameβ the VALUE's name, exactly as it appears in a VALUE dictionary line βοΈoutβ the VALUE's numeric value. It gets set only on success β
π RETURN VALUE π
0on success β ate, no notes π-1ifctx/def/name/outisNULL, or if no such VALUE is defined fordefπ
πΈ 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)
fr fr go read the whole crew, they're all lowkey iconic π§
mwah π this page brought to you by radcli (the Radius client library, main character energy π₯), dated 2026-10-10 β radcli_dict_lookup_value(3), periodt πβ¨
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms