radcli_dict_lookup_num(3)

radcli_dict_lookup_num3

Look up a dictionary attribute by its legacy numeric id and vendor.

Usage

#include <radcli/>

const radcli_attr_def * radcli_dict_lookup_num(
    const radcli_ctx  *ctx,
    uint32_t           attrid,
    uint32_t           vendor
);

Overview

Bridges callers that still hold a radcli.h PW_* constant; equivalent to radcli_dict_lookup_oid() with the same attribute expressed as an OID.

Parameters

ctx

a context with a dictionary loaded.

attrid

the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero).

vendor

the vendor PEN, or 0 for a standard attribute.

Return value

the attribute definition, or NULL if no such attribute is loaded. Non-NULL for any RFC 2865/2866/2869 attribute ID on a context that has the built-in dictionary loaded every radcli_ctx_read_config() context, and every radcli_ctx_new() context unless created with RADCLI_CTX_NO_BUILTIN_DICT.

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