comparison OrthancServer/ServerContext.h @ 3534:cac8ffcb9cef

forcing AuthenticationEnabled to false is considered as insecure if remote access is allowed
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Oct 2019 19:16:12 +0200
parents 2090ec6a83a5
children 41365091a41e
comparison
equal deleted inserted replaced
3533:2090ec6a83a5 3534:cac8ffcb9cef
218 std::string defaultLocalAet_; 218 std::string defaultLocalAet_;
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 isDefaultUser_; 223 bool isHttpServerSecure_;
224 224
225 public: 225 public:
226 class DicomCacheLocker : public boost::noncopyable 226 class DicomCacheLocker : public boost::noncopyable
227 { 227 {
228 private: 228 private:
402 MetricsRegistry& GetMetricsRegistry() 402 MetricsRegistry& GetMetricsRegistry()
403 { 403 {
404 return *metricsRegistry_; 404 return *metricsRegistry_;
405 } 405 }
406 406
407 void SetDefaultUser(bool isDefaultUser) 407 void SetHttpServerSecure(bool isSecure)
408 { 408 {
409 isDefaultUser_ = isDefaultUser; 409 isHttpServerSecure_ = isSecure;
410 } 410 }
411 411
412 bool IsDefaultUser() const 412 bool IsHttpServerSecure() const
413 { 413 {
414 return isDefaultUser_; 414 return isHttpServerSecure_;
415 } 415 }
416 }; 416 };
417 } 417 }