]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/radius.h
Stargazer (#6)
[stg.git] / projects / stargazer / plugins / other / radius / radius.h
diff --git a/projects/stargazer/plugins/other/radius/radius.h b/projects/stargazer/plugins/other/radius/radius.h
new file mode 100644 (file)
index 0000000..4cc84e2
--- /dev/null
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "stg/auth.h"
+#include <string>
+
+namespace STG
+{
+    class RADIUS : public Auth
+    {
+        public:
+            RADIUS();
+
+            int Start() override { return 0; }
+            int Stop() override { return 0; }
+            int Reload(const ModuleSettings & /*ms*/) override { return 0; }
+            bool IsRunning() override { return isRunning; }
+            int ParseSettings() override { return 0; }
+            const std::string & GetStrError() const override { return errorStr; }
+            std::string GetVersion() const override;
+            uint16_t GetStartPosition() const override { return 0; }
+            uint16_t GetStopPosition() const override { return 0; }
+
+            int SendMessage(const Message & msg, uint32_t ip) const override { return 0; }
+
+        private:
+            mutable std::string errorStr;
+            bool isRunning;
+
+    };
+}