]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/dnssec_v2/dnssec_v2_validation.h
mDNSResponder-1310.40.42.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / dnssec_v2 / dnssec_v2_validation.h
1 //
2 // dnssec_v2_validation.h
3 // mDNSResponder
4 //
5 // Copyright (c) 2020 Apple Inc. All rights reserved.
6 //
7
8 #ifndef DNSSEC_V2_VALIDATION_H
9 #define DNSSEC_V2_VALIDATION_H
10
11 #include <stdio.h>
12 #include "mDNSEmbeddedAPI.h"
13 #if MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
14
15 typedef enum dnssec_validator_node_type {
16 rr_validator,
17 nsec_validator,
18 nsec3_validator,
19 zsk_validator,
20 ksk_validator
21 } dnssec_validator_node_type_t;
22
23 //======================================================================================================================
24 // functions prototype
25 //======================================================================================================================
26
27 mDNSexport dnssec_validation_result_t
28 validate_dnssec(dnssec_context_t * const _Nonnull context);
29
30 mDNSexport mDNSu16
31 calculate_key_tag(const mDNSu8 key[_Nonnull], const mDNSu16 key_len, const mDNSu8 algorithm);
32
33 #endif // MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
34
35 #endif // DNSSEC_V2_VALIDATION_H