fr_pair_aprint_secure(TALLOC_CTX *ctx, char **out, fr_dict_attr_t const *parent, fr_pair_t const *vp)
SBUFF_OUT_TALLOC_FUNC_NO_LEN_DEF(fr_pair_print_secure, parent, vp)
-void fr_pair_fprint(FILE *, fr_pair_t const *vp) CC_HINT(nonnull);
-
#define fr_pair_list_log(_log, _lvl, _list) _fr_pair_list_log(_log, _lvl, NULL, _list, __FILE__, __LINE__)
void _fr_pair_list_log(fr_log_t const *log, int lvl, fr_pair_t *parent,
fr_pair_list_t const *list, char const *file, int line) CC_HINT(nonnull(1,4));
FR_SBUFF_SET_RETURN(out, &our_out);
}
-/** Print one attribute and value to FP
- *
- * Complete string with '\\t' and '\\n' is written to buffer before printing to
- * avoid issues when running with multiple threads.
- *
- * This function will print *flattened* lists, as is suitable for use
- * with rlm_detail. In fact, the only user of this function is
- * rlm_detail.
- *
- * @param fp to output to.
- * @param vp to print.
- */
-void fr_pair_fprint(FILE *fp, fr_pair_t const *vp)
-{
- char buff[1024];
- fr_sbuff_t sbuff = FR_SBUFF_OUT(buff, sizeof(buff));
-
- PAIR_VERIFY(vp);
-
- (void) fr_sbuff_in_char(&sbuff, '\t');
- (void) fr_pair_print(&sbuff, NULL, vp);
- (void) fr_sbuff_in_char(&sbuff, '\n');
-
- fputs(buff, fp);
-}
-
-
static void fr_pair_list_log_sbuff(fr_log_t const *log, int lvl, fr_pair_t *parent, fr_pair_list_t const *list, char const *file, int line, fr_sbuff_t *sbuff)
{
fr_dict_attr_t const *parent_da = NULL;
{ NULL }
};
+/** Print one attribute and value to FP
+ *
+ * Complete string with '\\t' and '\\n' is written to buffer before printing to
+ * avoid issues when running with multiple threads.
+ *
+ * @todo - This function should print *flattened* lists.
+ *
+ * @param fp to output to.
+ * @param vp to print.
+ */
+static void CC_HINT(nonnull) fr_pair_fprint(FILE *fp, fr_pair_t const *vp)
+{
+ char buff[1024];
+ fr_sbuff_t sbuff = FR_SBUFF_OUT(buff, sizeof(buff));
+
+ PAIR_VERIFY(vp);
+
+ (void) fr_sbuff_in_char(&sbuff, '\t');
+ (void) fr_pair_print(&sbuff, NULL, vp);
+ (void) fr_sbuff_in_char(&sbuff, '\n');
+
+ fputs(buff, fp);
+}
+
+
+
/** Generic function for parsing conf pair values as int
*
* @note This should be used for enum types as c99 6.4.4.3 states that the enumeration