Use system certificate on Windows.

This commit is contained in:
Chunting Gu
2019-06-17 15:28:20 +08:00
parent 889024d6c7
commit 43aadee885
5 changed files with 54 additions and 40 deletions
-10
View File
@@ -10,14 +10,6 @@
// Change to 1 to print response JSON.
#define PRINT_RESPONSE 0
#if (defined(_WIN32) || defined(_WIN64))
// You need to set environment variable SSL_CERT_FILE properly to enable
// SSL verification.
bool kSslVerify = false;
#else
bool kSslVerify = true;
#endif
const std::string kUrlRoot = "https://api.github.com";
// -----------------------------------------------------------------------------
@@ -136,8 +128,6 @@ int main() {
webcc::ClientSession session;
session.set_ssl_verify(kSslVerify);
ListEvents(session);
return 0;