# HG changeset patch # User Sebastien Jodogne # Date 1443785499 -7200 # Node ID 4fc502d469f4f0b56b367bb1abacef82b1743f4f # Parent 0bbcfd9695e5014638c5861995623d53700f011e fix build if SSL is disabled diff -r 0bbcfd9695e5 -r 4fc502d469f4 Core/Enumerations.h --- a/Core/Enumerations.h Fri Oct 02 13:26:05 2015 +0200 +++ b/Core/Enumerations.h Fri Oct 02 13:31:39 2015 +0200 @@ -134,6 +134,7 @@ ErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, ErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, ErrorCode_DatabaseNotInitialized = 2038 /*!< Plugin trying to call the database during its initialization */, + ErrorCode_SslDisabled = 2039 /*!< Orthanc has been built without SSL support */, ErrorCode_START_PLUGINS = 1000000 }; diff -r 0bbcfd9695e5 -r 4fc502d469f4 Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Fri Oct 02 13:26:05 2015 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Fri Oct 02 13:31:39 2015 +0200 @@ -931,7 +931,7 @@ #if ORTHANC_SSL_ENABLED == 0 if (enabled) { - throw OrthancException("Orthanc has been built without SSL support"); + throw OrthancException(ErrorCode_SslDisabled); } else { diff -r 0bbcfd9695e5 -r 4fc502d469f4 Plugins/Include/orthanc/OrthancCPlugin.h --- a/Plugins/Include/orthanc/OrthancCPlugin.h Fri Oct 02 13:26:05 2015 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Fri Oct 02 13:31:39 2015 +0200 @@ -267,6 +267,7 @@ OrthancPluginErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, OrthancPluginErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, OrthancPluginErrorCode_DatabaseNotInitialized = 2038 /*!< Plugin trying to call the database during its initialization */, + OrthancPluginErrorCode_SslDisabled = 2039 /*!< Orthanc has been built without SSL support */, _OrthancPluginErrorCode_INTERNAL = 0x7fffffff } OrthancPluginErrorCode; diff -r 0bbcfd9695e5 -r 4fc502d469f4 Resources/ErrorCodes.json --- a/Resources/ErrorCodes.json Fri Oct 02 13:26:05 2015 +0200 +++ b/Resources/ErrorCodes.json Fri Oct 02 13:31:39 2015 +0200 @@ -492,5 +492,10 @@ "Code": 2038, "Name": "DatabaseNotInitialized", "Description": "Plugin trying to call the database during its initialization" + }, + { + "Code": 2039, + "Name": "SslDisabled", + "Description": "Orthanc has been built without SSL support" } ]