]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove support for old list separators
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 29 Nov 2020 17:25:56 +0000 (10:25 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 29 Nov 2020 17:26:18 +0000 (10:26 -0700)
There's no point in maintaining backwards compatibility when the reference syntax has changed so significantly

src/lib/server/tmpl.h
src/lib/server/tmpl_tokenize.c

index c76d3a9fb272bab0e4140dce01aec52d9460449e..98667f2b88bfe85b4d83b1882238282e79b8978f 100644 (file)
@@ -443,8 +443,6 @@ struct tmpl_s {
 
                        fr_dlist_head_t         rr;             //!< Request to search or insert in.
 
-                       bool                    old_list_sep;   //!< Print ':'
-
                        pair_list_t             list;           //!< List to search or insert in.
                                                                ///< deprecated.
 
index 7107a5dbeb0037bb6aaec0c292fb3300abad049b..c0c947d64b24bdc16bc2f3427968525aac484ab3 100644 (file)
@@ -1913,11 +1913,10 @@ ssize_t tmpl_afrom_attr_substr(TALLOC_CTX *ctx, tmpl_attr_error_t *err,
         *
         *      This will either be after:
         *      - A zero length list, i.e. just after the prefix '&', in which case we require an attribue
-        *      - A ':' or '.' and then an allowed char, so we're sure it's not just a bare list ref.
+        *      - '.' and then an allowed char, so we're sure it's not just a bare list ref.
         */
        if ((list_len == 0) ||
-           (((fr_sbuff_next_if_char(&our_name, ':') && (vpt->data.attribute.old_list_sep = true)) ||
-            fr_sbuff_next_if_char(&our_name, '.')) && fr_sbuff_is_in_charset(&our_name, fr_dict_attr_allowed_chars))) {
+           (fr_sbuff_next_if_char(&our_name, '.') && fr_sbuff_is_in_charset(&our_name, fr_dict_attr_allowed_chars))) {
                ret = tmpl_attr_afrom_attr_substr(vpt, err,
                                                  vpt, t_rules->attr_parent, &our_name, p_rules, t_rules, 0);
                if (ret < 0) goto error;
@@ -3436,11 +3435,11 @@ ssize_t tmpl_attr_print(fr_sbuff_t *out, tmpl_t const *vpt, tmpl_attr_prefix_t a
 
                FR_SBUFF_IN_TABLE_STR_RETURN(&our_out, pair_list_table, tmpl_list(vpt), "<INVALID>");
                if (fr_dlist_num_elements(&vpt->data.attribute.ar)) {
-                       FR_SBUFF_IN_CHAR_RETURN(&our_out, vpt->data.attribute.old_list_sep ? ':' : '.');
+                       FR_SBUFF_IN_CHAR_RETURN(&our_out, '.');
                }
        } else if (printed_rr) {                        /* Request qualifier with no list qualifier */
                if (fr_dlist_num_elements(&vpt->data.attribute.ar)) {
-                       FR_SBUFF_IN_CHAR_RETURN(&our_out, vpt->data.attribute.old_list_sep ? ':' : '.');
+                       FR_SBUFF_IN_CHAR_RETURN(&our_out, '.');
                }
        }