Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/WebServiceParameters.h Wed Nov 09 16:57:19 2016 +0100 +++ b/Core/WebServiceParameters.h Wed Nov 09 17:09:29 2016 +0100 @@ -32,6 +32,10 @@ #pragma once +#if !defined(ORTHANC_SANDBOXED) +# error The macro ORTHANC_SANDBOXED must be defined +#endif + #include <string> #include <json/json.h> @@ -88,9 +92,11 @@ void ClearClientCertificate(); +#if ORTHANC_SANDBOXED == 0 void SetClientCertificate(const std::string& certificateFile, const std::string& certificateKeyFile, const std::string& certificateKeyPassword); +#endif const std::string& GetCertificateFile() const {