Skip to content

Commit

Permalink
Use native system CA store when contacting website (#56)
Browse files Browse the repository at this point in the history
This fixes the use of concordance on Windows where the bundled libcurl
can't by default find a valid CA store, resulting in failure to contact
the website.

Fixes #55.
  • Loading branch information
swt2c authored Mar 6, 2024
1 parent 52f3c22 commit bd643ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libconcord/web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ static int Zap(string &server, string &path, string &cookie, string &post)
#else
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, dummy_cb);
#endif
#if LIBCURL_VERSION_NUM >= 0x074700
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
#endif

CURLcode res = curl_easy_perform(curl);
if (res != CURLE_OK) {
Expand Down

0 comments on commit bd643ab

Please sign in to comment.