mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
metalink: Un-broke the build when building --with-darwinssl
This commit is contained in:
parent
154fc29f58
commit
1de496cf0f
@ -52,6 +52,15 @@
|
|||||||
# define MD5_CTX gcry_md_hd_t
|
# define MD5_CTX gcry_md_hd_t
|
||||||
# define SHA_CTX gcry_md_hd_t
|
# define SHA_CTX gcry_md_hd_t
|
||||||
# define SHA256_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
|
#else
|
||||||
# error "Can't compile METALINK support without a crypto library."
|
# error "Can't compile METALINK support without a crypto library."
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user