4 // Copyright © 2015 Apple Inc. All rights reserved.
7 #ifndef SecAppleAnchor_c
8 #define SecAppleAnchor_c
10 #include <CoreFoundation/CoreFoundation.h>
11 #include <Security/Security.h>
12 #include <sys/cdefs.h>
16 typedef CF_OPTIONS(uint32_t, SecAppleTrustAnchorFlags
) {
17 kSecAppleTrustAnchorFlagsIncludeTestAnchors
= 1 << 0,
18 kSecAppleTrustAnchorFlagsAllowNonProduction
= 1 << 1,
22 * Return true if the certificate is an the Apple Trust anchor.
25 SecIsAppleTrustAnchor(SecCertificateRef cert
,
26 SecAppleTrustAnchorFlags flags
);
29 SecIsAppleTrustAnchorData(CFDataRef cert
,
30 SecAppleTrustAnchorFlags flags
);
35 #endif /* SecAppleAnchor */