]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/config.h
Use separate config sections for each session stage.
[stg.git] / projects / stargazer / plugins / other / radius / config.h
index 28da964e930320269be5e507e7bbee01bfbe3391..45ee521fdc9c3e151d8c677a59b3438751df917a 100644 (file)
@@ -37,12 +37,24 @@ struct Config
     typedef std::pair<std::string, std::string> Pair;
     enum Type { UNIX, TCP };
 
+    struct Section
+    {
+        Section() {}
+        Section(const Pairs& ma, const Pairs& mo, const Pairs& re)
+            : match(ma), modify(mo), reply(re) {}
+        Pairs match;
+        Pairs modify;
+        Pairs reply;
+    };
+
     Config() {}
     Config(const MODULE_SETTINGS& settings);
 
-    Pairs match;
-    Pairs modify;
-    Pairs reply;
+    Section autz;
+    Section auth;
+    Section postauth;
+    Section preacct;
+    Section acct;
 
     bool verbose;