Mercurial > hg > orthanc
diff Core/Pkcs11.cpp @ 2145:39f4207727db
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 17:09:29 +0100 |
parents | dd609a99d39a |
children | a3a65de1840f |
line wrap: on
line diff
--- a/Core/Pkcs11.cpp Wed Nov 09 16:57:19 2016 +0100 +++ b/Core/Pkcs11.cpp Wed Nov 09 17:09:29 2016 +0100 @@ -33,10 +33,6 @@ #include "PrecompiledHeaders.h" #include "Pkcs11.h" -#if ORTHANC_ENABLE_PKCS11 != 1 || ORTHANC_ENABLE_SSL != 1 -# error This file cannot be used if OpenSSL or PKCS#11 support is disabled -#endif - #if defined(OPENSSL_NO_RSA) || defined(OPENSSL_NO_EC) || defined(OPENSSL_NO_ECDSA) || defined(OPENSSL_NO_ECDH) # error OpenSSL was compiled without support for RSA, EC, ECDSA or ECDH @@ -45,12 +41,12 @@ #include "Logging.h" #include "OrthancException.h" -#include "Toolbox.h" +#include "SystemToolbox.h" extern "C" { -#include <libp11/engine.h> // This is P11's "engine.h" -#include <libp11/libp11.h> +# include <libp11/engine.h> // This is P11's "engine.h" +# include <libp11/libp11.h> } #include <openssl/engine.h> @@ -261,7 +257,7 @@ } if (module.empty() || - !Toolbox::IsRegularFile(module)) + !SystemToolbox::IsRegularFile(module)) { LOG(ERROR) << "The PKCS#11 module must be a path to one shared library (DLL or .so)"; throw OrthancException(ErrorCode_InexistentFile);