diff OrthancServer/ServerContext.h @ 3535:41365091a41e

display a security warning in the logs at startup when ExecuteLuaEnabled is true
author Alain Mazy <alain@mazy.be>
date Sun, 06 Oct 2019 09:52:57 +0200
parents cac8ffcb9cef
children 4d809b2e1141
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Fri Oct 04 19:16:12 2019 +0200
+++ b/OrthancServer/ServerContext.h	Sun Oct 06 09:52:57 2019 +0200
@@ -221,6 +221,7 @@
 
     std::auto_ptr<MetricsRegistry>  metricsRegistry_;
     bool isHttpServerSecure_;
+    bool isExecuteLuaEnabled_;
 
   public:
     class DicomCacheLocker : public boost::noncopyable
@@ -413,5 +414,15 @@
     {
       return isHttpServerSecure_;
     }
+
+    void SetExecuteLuaEnabled(bool enabled)
+    {
+      isExecuteLuaEnabled_ = enabled;
+    }
+
+    bool IsExecuteLuaEnabled() const
+    {
+      return isExecuteLuaEnabled_;
+    }
   };
 }