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
|
an attribute definition from radcli_dict_lookup() or a sibling. |
|---|---|
|
destination buffer; may be NULL if buflen is 0. |
|
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.