radcli_ctx_read_dictionary_from_buffer(3) Radius client library radcli_ctx_read_dictionary_from_buffer(3)

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

#include <radcli/>

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

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.

a context from radcli_ctx_new() or radcli_ctx_read_config().
the dictionary text.
buf's length in bytes.

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

radcli_ctx_apply(3), radcli_ctx_free(3), radcli_ctx_get_opt_int(3), radcli_ctx_get_opt_str(3), radcli_ctx_new(3), radcli_ctx_read_config(3), radcli_ctx_read_dictionary(3), radcli_ctx_set_opt_int(3), radcli_ctx_set_opt_str(3), radcli_ctx_set_secret(3), radcli_ctx_set_tls_psk(3)

2026-09-03 radcli