]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/dnssec_v2/dnssec_v2_trust_anchor.h
mDNSResponder-1310.40.42.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / dnssec_v2 / dnssec_v2_trust_anchor.h
1 //
2 // dnssec_v2_trust_anchor.h
3 // mDNSResponder
4 //
5 // Copyright (c) 2020 Apple Inc. All rights reserved.
6 //
7
8 #ifndef DNSSEC_V2_TRUST_ANCHOR_H
9 #define DNSSEC_V2_TRUST_ANCHOR_H
10
11 #include <stdio.h>
12 #include "mDNSEmbeddedAPI.h"
13 #if MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
14 #include "dnssec_v2_structs.h"
15
16 mDNSexport void
17 initialize_trust_anchors_t(trust_anchors_t * const _Nonnull anchor, const mDNSu8 *const _Nonnull zone_name);
18
19 mDNSexport void
20 uninitialize_trust_anchors_t(trust_anchors_t * const _Nonnull anchor);
21
22 mDNSexport void
23 print_trust_anchors_t(const trust_anchors_t * const _Nonnull anchor, mDNSu8 num_of_tabs);
24
25 mDNSexport mStatus
26 init_and_load_trust_anchors(void);
27
28 mDNSexport trust_anchors_t * _Nullable
29 get_trust_anchor_with_name(const mDNSu8 * _Nonnull const name);
30
31 mDNSexport void
32 uninit_trust_anchors(void);
33
34 mDNSexport mDNSBool
35 trust_anchor_can_be_reached(dnssec_context_t * const _Nonnull context);
36
37 mDNSexport mDNSBool
38 trust_anchor_contains_dnskey(const trust_anchors_t * const _Nonnull anchor);
39
40 mDNSexport mDNSBool
41 trust_anchor_contains_ds(const trust_anchors_t * const _Nonnull anchor);
42
43 #endif // MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
44 #endif // DNSSEC_V2_TRUST_ANCHOR_H