radcli_avp_get_bytes(3)

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

a

the attribute.

out

where to write a pointer to the value; valid for a's lifetime. May be NULL.

len

where to write the value's length in bytes. May be NULL.

Return value

0 on success, -1 if a is NULL.

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