radcli_ctx_read_dictionary_from_buffer(3)

radcli_ctx_read_dictionary_from_buffer3

Load an additional attribute dictionary from an in-memory buffer.

Usage

#include <radcli/>

int radcli_ctx_read_dictionary_from_buffer(
    radcli_ctx  *ctx,
    const char  *buf,
    size_t       size
);

Overview

The from-buffer counterpart to radcli_ctx_read_dictionary(), for a caller that has dictionary text already in memory rather than in a file (e.g. a small, program-defined supplemental dictionary) added so a radcli2.h-only caller is not forced to reach into radcli.h's rc_read_dictionary_from_buffer() for this one operation.

Parameters

ctx

a context from radcli_ctx_new() or radcli_ctx_read_config().

buf

the dictionary text.

size

buf's length in bytes.

Return value

0 on success, -1 on failure (a parse error, including a conflicting redefinition of an already-loaded attribute).

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