]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Convert PAIR_LIST_ enums to defines referencing DAs
authorNick Porter <nick@portercomputing.co.uk>
Fri, 13 Jan 2023 13:46:09 +0000 (13:46 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 16:31:02 +0000 (10:31 -0600)
src/lib/server/tmpl.h

index b6f254e2d2ea8e20faee9375e1b46b9e1fe2cc12..73b960cd83986dace3629d27e12fcc28c81b60cf 100644 (file)
@@ -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;