.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_ctx_read_dictionary_from_buffer 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_ctx_read_dictionary_from_buffer \- Load an additional attribute dictionary from an in-memory buffer. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_ctx_read_dictionary_from_buffer\fP( \fBradcli_ctx *\fP\fIctx\fP, \fBconst char *\fP\fIbuf\fP, \fBsize_t \fP\fIsize\fP ); .fi .SH DESCRIPTION .PP 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. .SH PARAMETERS .TP .B ctx a context from radcli_ctx_new() or radcli_ctx_read_config(). .TP .B buf the dictionary text. .TP .B size buf's length in bytes. .SH RETURN VALUE .PP 0 on success, -1 on failure (a parse error, including a conflicting redefinition of an already-loaded attribute). .SH SEE ALSO .PP .nh .ad l \fIradcli_ctx_apply\fP(3), \fIradcli_ctx_free\fP(3), \fIradcli_ctx_get_opt_int\fP(3), \fIradcli_ctx_get_opt_str\fP(3), \fIradcli_ctx_new\fP(3), \fIradcli_ctx_read_config\fP(3), \fIradcli_ctx_read_dictionary\fP(3), \fIradcli_ctx_set_opt_int\fP(3), \fIradcli_ctx_set_opt_str\fP(3), \fIradcli_ctx_set_secret\fP(3), \fIradcli_ctx_set_tls_psk\fP(3) .ad .hy