xref: /netbsd-src/external/mpl/bind/dist/lib/dns/rdata/generic/hip_55.h (revision 2718af68c3efc72c9769069b5c7f9ed36f6b9def)
1 /*	$NetBSD: hip_55.h,v 1.5 2021/02/19 16:42:17 christos Exp $	*/
2 
3 /*
4  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9  *
10  * See the COPYRIGHT file distributed with this work for additional
11  * information regarding copyright ownership.
12  */
13 
14 #ifndef GENERIC_HIP_5_H
15 #define GENERIC_HIP_5_H 1
16 
17 /* RFC 5205 */
18 
19 typedef struct dns_rdata_hip {
20 	dns_rdatacommon_t common;
21 	isc_mem_t *mctx;
22 	unsigned char *hit;
23 	unsigned char *key;
24 	unsigned char *servers;
25 	uint8_t algorithm;
26 	uint8_t hit_len;
27 	uint16_t key_len;
28 	uint16_t servers_len;
29 	/* Private */
30 	uint16_t offset;
31 } dns_rdata_hip_t;
32 
33 isc_result_t
34 dns_rdata_hip_first(dns_rdata_hip_t *);
35 
36 isc_result_t
37 dns_rdata_hip_next(dns_rdata_hip_t *);
38 
39 void
40 dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *);
41 
42 #endif /* GENERIC_HIP_5_H */
43