Mercurial > hg > orthanc
diff Core/WebServiceParameters.cpp @ 2145:39f4207727db
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 17:09:29 +0100 |
parents | fd5875662670 |
children | 68557554348f |
line wrap: on
line diff
--- a/Core/WebServiceParameters.cpp Wed Nov 09 16:57:19 2016 +0100 +++ b/Core/WebServiceParameters.cpp Wed Nov 09 17:09:29 2016 +0100 @@ -34,10 +34,13 @@ #include "WebServiceParameters.h" #include "../Core/Logging.h" -#include "../Core/SystemToolbox.h" #include "../Core/Toolbox.h" #include "../Core/OrthancException.h" +#if ORTHANC_SANDBOXED == 0 +# include "../Core/SystemToolbox.h" +#endif + #include <cassert> namespace Orthanc @@ -58,6 +61,7 @@ } +#if ORTHANC_SANDBOXED == 0 void WebServiceParameters::SetClientCertificate(const std::string& certificateFile, const std::string& certificateKeyFile, const std::string& certificateKeyPassword) @@ -85,6 +89,7 @@ certificateKeyFile_ = certificateKeyFile; certificateKeyPassword_ = certificateKeyPassword; } +#endif static void AddTrailingSlash(std::string& url)