Browse Source

Windows and macOS use native transport.

Brucey 3 years ago
parent
commit
6bae18fdb5
1 changed files with 6 additions and 2 deletions
  1. 6 2
      libcurl.mod/libcurl/lib/curl_config.h

+ 6 - 2
libcurl.mod/libcurl/lib/curl_config.h

@@ -1002,10 +1002,14 @@
 /* #undef USE_RUSTLS */
 /* #undef USE_RUSTLS */
 
 
 /* to enable Windows native SSL/TLS support */
 /* to enable Windows native SSL/TLS support */
-/* #undef USE_SCHANNEL */
+#ifdef _WIN32
+#define USE_SCHANNEL 1
+#endif
 
 
 /* enable Secure Transport */
 /* enable Secure Transport */
-/* #undef USE_SECTRANSP */
+#ifdef __APPLE__
+#define USE_SECTRANSP 1
+#endif
 
 
 /* if you want POSIX threaded DNS lookup */
 /* if you want POSIX threaded DNS lookup */
 #define USE_THREADS_POSIX 1
 #define USE_THREADS_POSIX 1