]> granicus.if.org Git - curl/commitdiff
darwinssl: fix iOS build
authorChris Araman <chris-araman@users.noreply.github.com>
Sat, 17 Mar 2018 20:49:27 +0000 (13:49 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 18 Mar 2018 09:57:04 +0000 (10:57 +0100)
lib/vtls/darwinssl.c

index f00a94295ca506dc915bfb6283936891b64bf9d6..f445302fa0828ebaa2c28ffd0ee6f344f1f67458 100644 (file)
@@ -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
       }
     }