radcli_avp_get_bytes3
Read an attribute's value as raw bytes.
Usage
#include <radcli/>
int radcli_avp_get_bytes(
const radcli_avp *a,
const void **out,
size_t *len
);
Overview
Valid for every attribute type, since the underlying representation is always length-carrying bytes; the interpretation of those bytes for integer/IPv4/date-typed attributes matches radcli_avp_get_uint32()'s.
Parameters
|
the attribute. |
|---|---|
|
where to write a pointer to the value; valid for a's lifetime. May be NULL. |
|
where to write the value's length in bytes. May be NULL. |
Return value
0 on success, -1 if a is NULL.