radcli_dict_lookup_oid(3) Radius client library radcli_dict_lookup_oid(3)

radcli_dict_lookup_oid - Look up a dictionary attribute by RFC 6929 §2.7 OID notation.

#include <radcli/>

const radcli_attr_def * radcli_dict_lookup_oid(
    const radcli_ctx  *ctx,
    const char        *oid
);

Accepts a standard attribute as a single component ("1" for User-Name) or a vendor-specific attribute as "26.<vendor-id>.<vendor-type>" (e.g. "26.311.11"). Longer forms naming an RFC 6929 extended, long-extended, or TLV-nested attribute parse without error but currently match nothing: the bundled dictionary carries no RFC 6929 extended/long-extended/TLV-nested attributes yet.

a context with a dictionary loaded.
the dot-separated OID text.

the attribute definition, or NULL if the OID is malformed or matches no loaded attribute.

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_value(3)

2026-09-03 radcli