From: Chris Araman Date: Fri, 23 Dec 2016 02:27:17 +0000 (-0800) Subject: darwinssl: fix iOS build X-Git-Tag: curl-7_53_0~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8db3afe16c0916ea5acf6aed6e7cf02f06cc8677;p=thirdparty%2Fcurl.git darwinssl: fix iOS build Reviewed-by: Nick Zitzmann Fixes #1172 --- diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index a43e391258..2146b562df 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -936,7 +936,11 @@ static OSStatus CopyIdentityWithLabel(char *label, (SecIdentityRef) CFArrayGetValueAtIndex(keys_list, i); err = SecIdentityCopyCertificate(*out_cert_and_key, &cert); if(err == noErr) { +#if CURL_BUILD_IOS + common_name = SecCertificateCopySubjectSummary(cert); +#else // CURL_BUILD_MAC_10_7 SecCertificateCopyCommonName(cert, &common_name); +#endif if(CFStringCompare(common_name, label_cf, 0) == kCFCompareEqualTo) { CFRelease(cert); CFRelease(common_name);