From: Nick Porter Date: Fri, 13 Jan 2023 13:46:09 +0000 (+0000) Subject: Convert PAIR_LIST_ enums to defines referencing DAs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd0d39122576fed02fa42a6b014d285f33991b7a;p=thirdparty%2Ffreeradius-server.git Convert PAIR_LIST_ enums to defines referencing DAs --- diff --git a/src/lib/server/tmpl.h b/src/lib/server/tmpl.h index b6f254e2d2e..73b960cd839 100644 --- a/src/lib/server/tmpl.h +++ b/src/lib/server/tmpl.h @@ -81,19 +81,11 @@ extern "C" { */ #define TMPL_MAX_REQUEST_REF_NESTING 10 -/* - * Forward declarations - */ -typedef enum pair_list_e { - PAIR_LIST_REQUEST = 0, //!< Attributes in incoming or internally proxied - ///< request (default). - PAIR_LIST_REPLY, //!< Attributes to send in the response. - PAIR_LIST_CONTROL, //!< Attributes that change the behaviour of - ///< modules. - PAIR_LIST_STATE, //!< Attributes to store multiple rounds of - ///< challenges/responses. - PAIR_LIST_UNKNOWN //!< Unknown list. -} tmpl_pair_list_t; +#define PAIR_LIST_UNKNOWN NULL +#define PAIR_LIST_REQUEST request_attr_request +#define PAIR_LIST_REPLY request_attr_reply +#define PAIR_LIST_CONTROL request_attr_control +#define PAIR_LIST_STATE request_attr_state extern fr_table_num_ordered_t const pair_list_table[]; extern size_t pair_list_table_len;