Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.h @ 34:96e57b863dd9
option to disallow remote access
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Aug 2012 11:22:21 +0200 |
parents | dd1489098265 |
children | a15e90e5d6fc |
comparison
equal
deleted
inserted
replaced
32:0c3e317f35e8 | 34:96e57b863dd9 |
---|---|
42 Handlers handlers_; | 42 Handlers handlers_; |
43 | 43 |
44 typedef std::set<std::string> RegisteredUsers; | 44 typedef std::set<std::string> RegisteredUsers; |
45 RegisteredUsers registeredUsers_; | 45 RegisteredUsers registeredUsers_; |
46 | 46 |
47 bool remoteAllowed_; | |
47 bool authentication_; | 48 bool authentication_; |
48 bool ssl_; | 49 bool ssl_; |
49 std::string certificate_; | 50 std::string certificate_; |
50 uint16_t port_; | 51 uint16_t port_; |
51 | 52 |
93 return certificate_; | 94 return certificate_; |
94 } | 95 } |
95 | 96 |
96 void SetSslCertificate(const char* path); | 97 void SetSslCertificate(const char* path); |
97 | 98 |
99 bool IsRemoteAccessAllowed() const | |
100 { | |
101 return remoteAllowed_; | |
102 } | |
103 | |
104 void SetRemoteAccessAllowed(bool allowed); | |
105 | |
98 void ClearHandlers(); | 106 void ClearHandlers(); |
99 | 107 |
100 // Can return NULL if no handler is associated to this URI | 108 // Can return NULL if no handler is associated to this URI |
101 HttpHandler* FindHandler(const UriComponents& forUri) const; | 109 HttpHandler* FindHandler(const UriComponents& forUri) const; |
102 | 110 |