Skip to content

Commit

Permalink
disable ssl verification on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent 35d4a2a commit b91be70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions get.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ int main(int argc, char *argv[]) {
curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);
curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);

#if defined(_WIN32)
curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(hnd, CURLOPT_ssl_verifyhost, 0L);
#endif

ret = curl_easy_perform(hnd);
if (ret != CURLE_OK) {
fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(ret));
Expand Down

0 comments on commit b91be70

Please sign in to comment.