radcli_ctx_read_dictionary_from_buffer - Man Page
Load an additional attribute dictionary from an in-memory buffer.
Synopsis
#include <radcli/>
int radcli_ctx_read_dictionary_from_buffer(
radcli_ctx *ctx,
const char *buf,
size_t size
);Description
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).
See Also
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)