]> git.saurik.com Git - apple/security.git/blob - OSX/utilities/src/SecAppleAnchorPriv.h
Security-57337.50.23.tar.gz
[apple/security.git] / OSX / utilities / src / SecAppleAnchorPriv.h
1 //
2 // utilities
3 //
4 // Copyright © 2015 Apple Inc. All rights reserved.
5 //
6
7 #ifndef SecAppleAnchor_c
8 #define SecAppleAnchor_c
9
10 #include <CoreFoundation/CoreFoundation.h>
11 #include <Security/Security.h>
12 #include <sys/cdefs.h>
13
14 __BEGIN_DECLS
15
16 typedef CF_OPTIONS(uint32_t, SecAppleTrustAnchorFlags) {
17 kSecAppleTrustAnchorFlagsIncludeTestAnchors = 1 << 0,
18 kSecAppleTrustAnchorFlagsAllowNonProduction = 1 << 1,
19 };
20
21 /*
22 * Return true if the certificate is an the Apple Trust anchor.
23 */
24 bool
25 SecIsAppleTrustAnchor(SecCertificateRef cert,
26 SecAppleTrustAnchorFlags flags);
27
28 bool
29 SecIsAppleTrustAnchorData(CFDataRef cert,
30 SecAppleTrustAnchorFlags flags);
31
32 __END_DECLS
33
34
35 #endif /* SecAppleAnchor */