]> git.saurik.com Git - apple/security.git/blob - OSX/utilities/src/SecAppleAnchorPriv.h
Security-57336.1.9.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 };
19
20 /*
21 * Return true if the certificate is an the Apple Trust anchor.
22 */
23 bool
24 SecIsAppleTrustAnchor(SecCertificateRef cert,
25 SecAppleTrustAnchorFlags flags);
26
27 bool
28 SecIsAppleTrustAnchorData(CFDataRef cert,
29 SecAppleTrustAnchorFlags flags);
30
31 __END_DECLS
32
33
34 #endif /* SecAppleAnchor */