Skip to content

Commit

Permalink
better windows ssl handling
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Jan 12, 2024
1 parent 3c691da commit f9333fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osc-sdk-C
Submodule osc-sdk-C updated 2 files
+1 −1 COGNAC
+4 −0 osc_sdk.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 f9333fd

Please sign in to comment.