]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
temporary hack to set name2_quote
authorAlan T. DeKok <aland@freeradius.org>
Wed, 16 Nov 2022 11:42:06 +0000 (06:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Nov 2022 12:34:50 +0000 (07:34 -0500)
src/lib/server/cf_util.c
src/lib/server/cf_util.h

index 6934d0960ba9b3383b1282a3e979d630a88b150f..6dfc5323875c73cf417d13f97342fbf7051f6e41 100644 (file)
@@ -1165,6 +1165,18 @@ fr_token_t cf_section_name2_quote(CONF_SECTION const *cs)
        return cs->name2_quote;
 }
 
+/** Set the quoting of the name2 identifier
+ *
+ * @param[in] cs       containing name2.
+ * @param[in] token    the quote token
+ */
+void cf_section_add_name2_quote(CONF_SECTION *cs, fr_token_t token)
+{
+       if (!cs) return;
+
+       cs->name2_quote = token;
+}
+
 /** Return the quoting for one of the variadic arguments
  *
  * @param[in] cs       containing the arguments.
index 38ddcc03030691876ebf86f3ca1d606af50f804d..6bfb77a68647c57fc6dadc85b8b9183b57c05151 100644 (file)
@@ -173,6 +173,9 @@ char const  *cf_section_argv(CONF_SECTION const *cs, int argc);
 fr_token_t     cf_section_name2_quote(CONF_SECTION const *cs);
 fr_token_t     cf_section_argv_quote(CONF_SECTION const *cs, int argc);
 
+// only for rewrite_update
+void           cf_section_add_name2_quote(CONF_SECTION *cs, fr_token_t token);
+
 #define cf_section_free_children(_x) cf_item_free_children(cf_section_to_item(_x))