Skip to content

Commit

Permalink
try to fix windows SSL packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
  • Loading branch information
outscale-mgo committed Jan 12, 2024
1 parent d5d9337 commit 0b37f1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion COGNAC
Submodule COGNAC updated 1 files
+4 −0 lib.c
4 changes: 4 additions & 0 deletions osc_sdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b37f1e

Please sign in to comment.