Browse Source

Re-enable certificate checking in network::

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
86c44a132a
2 changed files with 1 additions and 3 deletions
  1. +1
    -1
      dep/Makefile
  2. +0
    -2
      src/network.cpp

+ 1
- 1
dep/Makefile View File

@@ -123,7 +123,7 @@ $(libcurl): $(openssl) curl-7.64.1
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 \
--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 install



+ 0
- 2
src/network.cpp View File

@@ -79,7 +79,6 @@ json_t *requestJson(Method method, std::string url, json_t *dataJ) {
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, reqStr);

std::string resText;
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeStringCallback);
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_XFERINFODATA, progress);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
// Fail on 4xx and 5xx HTTP codes
curl_easy_setopt(curl, CURLOPT_FAILONERROR, true);



Loading…
Cancel
Save