Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3534:cac8ffcb9cef | 3535:41365091a41e |
---|---|
219 OrthancHttpHandler httpHandler_; | 219 OrthancHttpHandler httpHandler_; |
220 bool saveJobs_; | 220 bool saveJobs_; |
221 | 221 |
222 std::auto_ptr<MetricsRegistry> metricsRegistry_; | 222 std::auto_ptr<MetricsRegistry> metricsRegistry_; |
223 bool isHttpServerSecure_; | 223 bool isHttpServerSecure_; |
224 bool isExecuteLuaEnabled_; | |
224 | 225 |
225 public: | 226 public: |
226 class DicomCacheLocker : public boost::noncopyable | 227 class DicomCacheLocker : public boost::noncopyable |
227 { | 228 { |
228 private: | 229 private: |
411 | 412 |
412 bool IsHttpServerSecure() const | 413 bool IsHttpServerSecure() const |
413 { | 414 { |
414 return isHttpServerSecure_; | 415 return isHttpServerSecure_; |
415 } | 416 } |
417 | |
418 void SetExecuteLuaEnabled(bool enabled) | |
419 { | |
420 isExecuteLuaEnabled_ = enabled; | |
421 } | |
422 | |
423 bool IsExecuteLuaEnabled() const | |
424 { | |
425 return isExecuteLuaEnabled_; | |
426 } | |
416 }; | 427 }; |
417 } | 428 } |