Mercurial > hg > orthanc
comparison Core/WebServiceParameters.h @ 2145:39f4207727db
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 17:09:29 +0100 |
parents | fefbe71c2272 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2144:a979ded1dbb1 | 2145:39f4207727db |
---|---|
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 29 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | |
35 #if !defined(ORTHANC_SANDBOXED) | |
36 # error The macro ORTHANC_SANDBOXED must be defined | |
37 #endif | |
34 | 38 |
35 #include <string> | 39 #include <string> |
36 #include <json/json.h> | 40 #include <json/json.h> |
37 | 41 |
38 namespace Orthanc | 42 namespace Orthanc |
86 password_ = password; | 90 password_ = password; |
87 } | 91 } |
88 | 92 |
89 void ClearClientCertificate(); | 93 void ClearClientCertificate(); |
90 | 94 |
95 #if ORTHANC_SANDBOXED == 0 | |
91 void SetClientCertificate(const std::string& certificateFile, | 96 void SetClientCertificate(const std::string& certificateFile, |
92 const std::string& certificateKeyFile, | 97 const std::string& certificateKeyFile, |
93 const std::string& certificateKeyPassword); | 98 const std::string& certificateKeyPassword); |
99 #endif | |
94 | 100 |
95 const std::string& GetCertificateFile() const | 101 const std::string& GetCertificateFile() const |
96 { | 102 { |
97 return certificateFile_; | 103 return certificateFile_; |
98 } | 104 } |