changeset 2473:0f463989f7e3

warning if no SSL support
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 02 Feb 2018 17:05:54 +0100
parents 808fd5218f56
children 0c57f40e2fbf
files Core/HttpClient.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpClient.cpp	Mon Jan 22 15:32:45 2018 +0100
+++ b/Core/HttpClient.cpp	Fri Feb 02 17:05:54 2018 +0100
@@ -84,7 +84,12 @@
 #endif
     static CURLcode OrthancHttpClientPerformSSL(CURL* curl, long* status)
   {
+#if ORTHANC_ENABLE_SSL == 1
     return GetHttpStatus(curl_easy_perform(curl), curl, status);
+#else
+    LOG(ERROR) << "Orthanc was compiled without SSL support, cannot make HTTPS request";
+    throw OrthancException(ErrorCode_InternalError);
+#endif
   }
 }