@@ -123,7 +123,7 @@ $(libcurl): $(openssl) curl-7.64.1 | |||||
cd curl-7.64.1 && PKG_CONFIG_PATH= $(CONFIGURE) \ | cd curl-7.64.1 && PKG_CONFIG_PATH= $(CONFIGURE) \ | ||||
--disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-shared --disable-symbol-hiding \ | --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-shared --disable-symbol-hiding \ | ||||
--without-zlib --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp --without-winidn --without-libidn2 --without-nghttp2 --without-brotli \ | --without-zlib --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp --without-winidn --without-libidn2 --without-nghttp2 --without-brotli \ | ||||
--without-ca-bundle --with-ca-fallback --with-ssl="$(DEP_PATH)" | |||||
--with-ssl="$(DEP_PATH)" | |||||
$(MAKE) -C curl-7.64.1 | $(MAKE) -C curl-7.64.1 | ||||
$(MAKE) -C curl-7.64.1 install | $(MAKE) -C curl-7.64.1 install | ||||
@@ -79,7 +79,6 @@ json_t *requestJson(Method method, std::string url, json_t *dataJ) { | |||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, reqStr); | curl_easy_setopt(curl, CURLOPT_POSTFIELDS, reqStr); | ||||
std::string resText; | std::string resText; | ||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); | |||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeStringCallback); | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeStringCallback); | ||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &resText); | curl_easy_setopt(curl, CURLOPT_WRITEDATA, &resText); | ||||
@@ -132,7 +131,6 @@ bool requestDownload(std::string url, const std::string &filename, float *progre | |||||
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferInfoCallback); | curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferInfoCallback); | ||||
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, progress); | curl_easy_setopt(curl, CURLOPT_XFERINFODATA, progress); | ||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); | curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); | ||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); | |||||
// Fail on 4xx and 5xx HTTP codes | // Fail on 4xx and 5xx HTTP codes | ||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); | curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); | ||||