aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorChris Araman <chris-araman@users.noreply.github.com>2018-03-17 13:49:27 -0700
committerDaniel Stenberg <daniel@haxx.se>2018-03-18 10:57:04 +0100
commitb7b2809a212a69f1ce59a25ba86b4f1d8a17ebc4 (patch)
tree7930f06b99f1095e0d711f91fa381730c7a093ee /lib/vtls
parentf982e49f0c0b74746be0d7d5eb76651323365653 (diff)
darwinssl: fix iOS build
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/darwinssl.c2
1 files changed, 2 insertions, 0 deletions
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
}
}