Skip to content

Commit

Permalink
Tiny fix in rx_download_file, removed ssl host verification
Browse files Browse the repository at this point in the history
  • Loading branch information
roxlu committed Apr 3, 2015
1 parent 83b305e commit c94416f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tinylib.h
Expand Up @@ -3338,6 +3338,9 @@ bool rx_download_file(std::string url, std::string filepath) {
res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
RX_CHECK_CURLCODE(res, "Cannot disable SSL_VERIFYPEER");

res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
RX_CHECK_CURLCODE(res, "Cannot disable SSL_VERIFYPEER");

res = curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
RX_CHECK_CURLCODE(res, "Cannot set url");

Expand Down

0 comments on commit c94416f

Please sign in to comment.