# HG changeset patch # User Sebastien Jodogne # Date 1517587554 -3600 # Node ID 0f463989f7e3fbc386826176315e1346c6c8e6d6 # Parent 808fd5218f5669447f6ef92932d720550edf31dc warning if no SSL support diff -r 808fd5218f56 -r 0f463989f7e3 Core/HttpClient.cpp --- 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 } }