comparison Core/HttpClient.cpp @ 2473:0f463989f7e3

warning if no SSL support
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 02 Feb 2018 17:05:54 +0100
parents 878b59270859
children 0c57f40e2fbf
comparison
equal deleted inserted replaced
2472:808fd5218f56 2473:0f463989f7e3
82 #if defined(__GNUC__) || defined(__clang__) 82 #if defined(__GNUC__) || defined(__clang__)
83 __attribute__((noinline)) 83 __attribute__((noinline))
84 #endif 84 #endif
85 static CURLcode OrthancHttpClientPerformSSL(CURL* curl, long* status) 85 static CURLcode OrthancHttpClientPerformSSL(CURL* curl, long* status)
86 { 86 {
87 #if ORTHANC_ENABLE_SSL == 1
87 return GetHttpStatus(curl_easy_perform(curl), curl, status); 88 return GetHttpStatus(curl_easy_perform(curl), curl, status);
89 #else
90 LOG(ERROR) << "Orthanc was compiled without SSL support, cannot make HTTPS request";
91 throw OrthancException(ErrorCode_InternalError);
92 #endif
88 } 93 }
89 } 94 }
90 95
91 96
92 97