2 // dnssec_v2_trust_anchor.h
5 // Copyright (c) 2020 Apple Inc. All rights reserved.
8 #ifndef DNSSEC_V2_TRUST_ANCHOR_H
9 #define DNSSEC_V2_TRUST_ANCHOR_H
12 #include "mDNSEmbeddedAPI.h"
13 #if MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
14 #include "dnssec_v2_structs.h"
17 initialize_trust_anchors_t(trust_anchors_t
* const _Nonnull anchor
, const mDNSu8
*const _Nonnull zone_name
);
20 uninitialize_trust_anchors_t(trust_anchors_t
* const _Nonnull anchor
);
23 print_trust_anchors_t(const trust_anchors_t
* const _Nonnull anchor
, mDNSu8 num_of_tabs
);
26 init_and_load_trust_anchors(void);
28 mDNSexport trust_anchors_t
* _Nullable
29 get_trust_anchor_with_name(const mDNSu8
* _Nonnull
const name
);
32 uninit_trust_anchors(void);
35 trust_anchor_can_be_reached(dnssec_context_t
* const _Nonnull context
);
38 trust_anchor_contains_dnskey(const trust_anchors_t
* const _Nonnull anchor
);
41 trust_anchor_contains_ds(const trust_anchors_t
* const _Nonnull anchor
);
43 #endif // MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
44 #endif // DNSSEC_V2_TRUST_ANCHOR_H