From a6f391cc4b16a2feb83e152e275b4fd50b510bff Mon Sep 17 00:00:00 2001 From: mrbesen Date: Sun, 28 Aug 2022 11:32:54 +0200 Subject: [PATCH] disbale certchecks on windows (for now) --- include/restclient.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/restclient.h b/include/restclient.h index 1e9b624..70b132a 100644 --- a/include/restclient.h +++ b/include/restclient.h @@ -35,5 +35,9 @@ protected: CURL* curl = nullptr; // the curl (does curling) std::string basicauth; // basic auth code (user:pw) or empty string to disable - bool disableCertCheck = false; +#ifdef WIN32 + bool disableCertCheck = true; +#else + bool disableCertCheck = false; +#endif };