浏览代码

Windows and macOS use native transport.

Brucey 3 年之前
父节点
当前提交
6bae18fdb5
共有 1 个文件被更改,包括 6 次插入2 次删除
  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 */
 
 /* to enable Windows native SSL/TLS support */
-/* #undef USE_SCHANNEL */
+#ifdef _WIN32
+#define USE_SCHANNEL 1
+#endif
 
 /* enable Secure Transport */
-/* #undef USE_SECTRANSP */
+#ifdef __APPLE__
+#define USE_SECTRANSP 1
+#endif
 
 /* if you want POSIX threaded DNS lookup */
 #define USE_THREADS_POSIX 1