diff options
author | Nick Zitzmann <nick@chronosnet.com> | 2012-08-07 17:08:54 -0600 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-08-08 11:16:26 +0200 |
commit | 1de496cf0f279ae27a46597408b5cbb360942eda (patch) | |
tree | 8af78a2bc48d88a4d38f77dbe2a5f2f4e86a298c /src/tool_metalink.c | |
parent | 154fc29f589f1b5b1503a14c2afe591f7c9edb71 (diff) | |
download | curl-1de496cf0f279ae27a46597408b5cbb360942eda.tar.gz |
metalink: Un-broke the build when building --with-darwinssl
Diffstat (limited to 'src/tool_metalink.c')
-rw-r--r-- | src/tool_metalink.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c index 3a24a1556..6e4a31c43 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -52,6 +52,15 @@ # define MD5_CTX gcry_md_hd_t # define SHA_CTX gcry_md_hd_t # define SHA256_CTX gcry_md_hd_t +#elif defined(USE_DARWINSSL) +/* For darwinssl: CommonCrypto has the functions we need. The library's + headers are even backward-compatible with OpenSSL's headers as long as + we define COMMON_DIGEST_FOR_OPENSSL first. + + These functions are available on Tiger and later, as well as iOS 5.0 + and later. If you're building for an older cat, well, sorry. */ +# define COMMON_DIGEST_FOR_OPENSSL +# include <CommonCrypto/CommonDigest.h> #else # error "Can't compile METALINK support without a crypto library." #endif |