radcli_attr_def_oid(3)

radcli_attr_def_oid3

Render an attribute definition's rfc 6929 §2.7 oid notation.

Usage

#include <radcli/>

int radcli_attr_def_oid(
    const radcli_attr_def  *def,
    char                   *buf,
    size_t                  buflen
);

Overview

Parameters

def

an attribute definition from radcli_dict_lookup() or a sibling.

buf

destination buffer; may be NULL if buflen is 0.

buflen

size of buf in bytes.

Return value

the number of characters the OID text would occupy, excluding the terminating null, as with snprintf(); negative if def is NULL.

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