radcli_avp_add_bytes(3)

radcli_avp_add_bytes3

Append an attribute holding an arbitrary byte string.

Usage

#include <radcli/>

int radcli_avp_add_bytes(
    radcli_avp_list        *list,
    const radcli_attr_def  *def,
    const void             *value,
    size_t                  len
);

Overview

The primitive every other radcli_avp_add_*() function is defined in terms of; valid for any attribute type, since the underlying representation is always length-carrying bytes.

Parameters

list

destination list.

def

the attribute, from radcli_dict_lookup() or a sibling.

value

the bytes to copy in; may be NULL only if len is 0.

len

number of bytes at value.

Return value

0 on success, -1 on failure (allocation failure, or NULL list/def).

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