cURL / Mailing Lists / curl-users / Single Mail

curl-users

Patch: Using Apple CommonCrypto for digests in curl & libcurl

From: Nick Zitzmann <nick_at_chronosnet.com>
Date: Tue, 16 Oct 2012 12:03:46 -0600

I'm not sure what list to send this to, since this change affects both the tool and libcurl, but since my previous CommonCrypto patch went to this list, here we go.

Following Marc's lead with the Windows build, I changed tool_metalink.c so that curl will now use Apple's CommonCrypto library for digests no matter what TLS/SSL engine libcurl was built with (if any) when building on Tiger or iOS 5 or later. Previously we only used CommonCrypto if curl was built with SecureTransport.

I also rolled out this change to md5.c in libcurl so libcurl will use CommonCrypto instead of the "default default" MD5 digest code. I tested it with both the --metalink and --digest options to the curl tool, and things work as expected under Mountain Lion, so please consider this patch for 7.28.1.

Nick Zitzmann
<http://www.chronosnet.com/>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-10-16