SSL Support on Mac

Utilizes Darwin SSL (rather than OpenSSL).
The configuration file that was built appears to be for Linux.
Had to remove the CURL_CA_BUNDLE for certificate lookup to work.
This commit is contained in:
Matthew Versluys 2015-10-24 13:53:04 -07:00
parent 1185a2fb46
commit 192aa8216b
3 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/* lib/curl_config.h.in. Generated from configure.ac by autoheader. */
/* Location of default ca bundle */
#define CURL_CA_BUNDLE "/etc/pki/tls/certs/ca-bundle.crt"
/* #define CURL_CA_BUNDLE "/etc/pki/tls/certs/ca-bundle.crt" */
/* Location of default ca path */
/* #undef CURL_CA_PATH */

View File

@ -20,7 +20,7 @@ project "curl-lib"
defines {"HAVE_CONFIG_H", "CURL_HIDDEN_SYMBOLS"}
configuration { 'macosx' }
defines { 'HAVE_CONFIG_H' }
defines { 'HAVE_CONFIG_H', 'USE_SSL', 'USE_DARWINSSL' }
configuration "Release"
defines {"NDEBUG"}

View File

@ -162,6 +162,9 @@
configuration "macosx"
defines { "LUA_USE_MACOSX" }
links { "CoreServices.framework" }
if not _OPTIONS["no-curl"] then
links { "Security.framework" }
end
configuration { "macosx", "gmake" }
toolset "clang"