darwinssl: fix build error in crypto authentication under Snow Leopard
authorNick Zitzmann <nickzman@gmail.com>
Wed, 31 Jul 2013 02:25:38 +0000 (20:25 -0600)
committerNick Zitzmann <nickzman@gmail.com>
Wed, 31 Jul 2013 02:25:38 +0000 (20:25 -0600)
commit537ffc4c69a3cf4962147070231bd9270faf9710
tree3d393e1e21e318a23bc458e3d51a46c8ad55880d
parentc3e721054822b6f2d099abb186c91518bc29be2c
darwinssl: fix build error in crypto authentication under Snow Leopard

It turns out Snow Leopard not only has SecItemCopyMatching() defined in
a header not included by the omnibus header, but it won't work for our
purposes, because searching for SecIdentityRef objects wasn't added
to that API until Lion. So we now use the old SecKeychainSearch API
instead if the user is building under, or running under, Snow Leopard.

Bug: http://sourceforge.net/p/curl/bugs/1255/
Reported by: Edward Rudd
lib/curl_darwinssl.c