Skip to content

Commit

Permalink
disabling ssl verification for windows
Browse files Browse the repository at this point in the history
not gonna waste more hours to get ssl certs working on windows
  • Loading branch information
tihmstar committed Oct 11, 2016
1 parent d977f94 commit 631af38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tsschecker/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ int downloadFile(const char *url, const char *dstPath){
curl_easy_setopt(mcurl, CURLOPT_TIMEOUT, 20L); //20 sec
curl_easy_setopt(mcurl, CURLOPT_WRITEFUNCTION, my_fwrite);
curl_easy_setopt(mcurl, CURLOPT_WRITEDATA, dfile);
#ifdef WIN32
//this will be sufficent, as long as ssl doesn't break anything somewhere else
//windows is evil!
curl_easy_setopt(mcurl, CURLOPT_SSL_VERIFYHOST, 0);
#endif


CURLcode res = curl_easy_perform(mcurl);
curl_easy_cleanup(mcurl);
Expand Down

0 comments on commit 631af38

Please sign in to comment.