From c4500cc3e3958a0ab32f0e1fc8b13377f9de7831 Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Fri, 12 Jan 2024 15:32:05 +0100 Subject: [PATCH] better windows ssl handling Signed-off-by: Matthias Gatto --- osc-sdk-C | 2 +- osc_sdk.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/osc-sdk-C b/osc-sdk-C index d5d9337..0b37f1e 160000 --- a/osc-sdk-C +++ b/osc-sdk-C @@ -1 +1 @@ -Subproject commit d5d93376ec9690d11498df58b4de8716e64e6dc3 +Subproject commit 0b37f1e6783dc0640de9338153cbff92b6779446 diff --git a/osc_sdk.c b/osc_sdk.c index 50087d2..ad4b45d 100644 --- a/osc_sdk.c +++ b/osc_sdk.c @@ -25617,6 +25617,10 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, e->headers = NULL; e->c = curl_easy_init(); + #ifdef _WIN32 + curl_easy_setopt(e->c, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_NATIVE_CA); + #endif + /* Setting HEADERS */ if (flag & OSC_VERBOSE_MODE) curl_easy_setopt(e->c, CURLOPT_VERBOSE, 1);