comparison Framework/Orthanc/Core/WebServiceParameters.h @ 15:da2cf3ace87a

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 17:20:44 +0100
parents 2dbe613f6c93
children
comparison
equal deleted inserted replaced
14:0b9034112fde 15:da2cf3ace87a
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 }