Reference

radcli_attr_def_oid(3)

Render an attribute definition's RFC 6929 §2.7 OID notation.

NAME

radcli_attr_def_oid - Render an attribute definition's RFC 6929 §2.7 OID notation.

SYNOPSIS

#include <radcli/>

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

DESCRIPTION

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.

SEE ALSO

radcli_attr_def_name(3), radcli_attr_def_type(3), radcli_dict_lookup(3), radcli_dict_lookup_num(3), radcli_dict_lookup_oid(3), radcli_dict_lookup_value(3)