diff Core/Pkcs11.h @ 2145:39f4207727db

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 17:09:29 +0100
parents 595cf22b3e7e
children a3a65de1840f
line wrap: on
line diff
--- a/Core/Pkcs11.h	Wed Nov 09 16:57:19 2016 +0100
+++ b/Core/Pkcs11.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
+
 #if !defined(ORTHANC_ENABLE_PKCS11)
 #  error The macro ORTHANC_ENABLE_PKCS11 must be defined
 #endif
@@ -40,6 +44,10 @@
 #  error The macro ORTHANC_ENABLE_SSL must be defined
 #endif
 
+#if ORTHANC_SANDBOXED == 1
+#  error This file cannot be used in sandboxed environments
+#endif
+
 #if ORTHANC_ENABLE_PKCS11 != 1 || ORTHANC_ENABLE_SSL != 1
 #  error This file cannot be used if OpenSSL or PKCS#11 support is disabled
 #endif