From b7b2809a212a69f1ce59a25ba86b4f1d8a17ebc4 Mon Sep 17 00:00:00 2001 From: Chris Araman Date: Sat, 17 Mar 2018 13:49:27 -0700 Subject: [PATCH] darwinssl: fix iOS build --- lib/vtls/darwinssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index f00a94295..f445302fa 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -1195,12 +1195,14 @@ static OSStatus CopyIdentityFromPKCS12File(const char *cPath, *out_cert_and_key = (SecIdentityRef) identity; break; } +#if CURL_BUILD_MAC_10_7 else if(itemID == SecCertificateGetTypeID()) { status = SecIdentityCreateWithCertificate(NULL, (SecCertificateRef) item, out_cert_and_key); break; } +#endif } } -- 2.40.0