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
|
destination list. |
|---|---|
|
the attribute, from radcli_dict_lookup() or a sibling. |
|
the bytes to copy in; may be NULL only if len is 0. |
|
number of bytes at value. |
Return value
0 on success, -1 on failure (allocation failure, or NULL list/def).