]> git.saurik.com Git - apple/security.git/blame - OSX/utilities/src/SecAppleAnchorPriv.h
Security-57337.20.44.tar.gz
[apple/security.git] / OSX / utilities / src / SecAppleAnchorPriv.h
CommitLineData
5c19dc3a
A
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
16typedef 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 */
23bool
24SecIsAppleTrustAnchor(SecCertificateRef cert,
25 SecAppleTrustAnchorFlags flags);
26
27bool
28SecIsAppleTrustAnchorData(CFDataRef cert,
29 SecAppleTrustAnchorFlags flags);
30
31__END_DECLS
32
33
34#endif /* SecAppleAnchor */