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
@@ -3,14 +3,6 @@
#include "webcc/client_session.h"
#include "webcc/logger.h"
#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
static void PrintSeparator() {
static const std::string s_line(80, '-');
std::cout << s_line << std::endl;
@@ -21,8 +13,6 @@ int main() {
webcc::ClientSession session;
session.set_ssl_verify(kSslVerify);
try {
PrintSeparator();