]> git.saurik.com Git - apple/security.git/blobdiff - trust/SecCertificatePriv.h
Security-58286.1.32.tar.gz
[apple/security.git] / trust / SecCertificatePriv.h
index 807fc4177ee9d05d889e8143789765b68221ae14..37147d53864933a596edbbaff0a4ea625e65ba89 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002-2004,2006-2016 Apple Inc. All Rights Reserved.
+ * Copyright (c) 2002-2004,2006-2017 Apple Inc. All Rights Reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
@@ -374,6 +374,20 @@ typedef CF_ENUM(uint32_t, SeciAuthVersion) {
 SeciAuthVersion SecCertificateGetiAuthVersion(SecCertificateRef certificate)
     __OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
 
+/* Return the normalized name or NULL if it fails to parse */
+CFDataRef SecDistinguishedNameCopyNormalizedSequence(CFDataRef distinguished_name)
+    __OSX_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
+/* Returns the Subject Key ID extension from the certificate or NULL if none */
+CFDataRef SecCertificateGetSubjectKeyID(SecCertificateRef certificate)
+    __OSX_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
+/* Returns an array of SecCertificateRefs containing the iPhone Device CA and
+ * its parent certificates. This interface is meant as a workaround and should
+ * not be used without consulting the Security team. */
+CFArrayRef SecCertificateCopyiPhoneDeviceCAChain(void)
+    __OSX_AVAILABLE_STARTING(__MAC_10_13, __IPHONE_11_0);
+
 
 /*
  * Legacy functions (OS X only)