1 /* $NetBSD: spf_99.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_SPF_99_H 15 #define GENERIC_SPF_99_H 1 16 17 typedef struct dns_rdata_spf_string { 18 uint8_t length; 19 unsigned char *data; 20 } dns_rdata_spf_string_t; 21 22 typedef struct dns_rdata_spf { 23 dns_rdatacommon_t common; 24 isc_mem_t *mctx; 25 unsigned char *txt; 26 uint16_t txt_len; 27 /* private */ 28 uint16_t offset; 29 } dns_rdata_spf_t; 30 31 /* 32 * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done 33 * via rdatastructpre.h and rdatastructsuf.h. 34 */ 35 #endif /* GENERIC_SPF_99_H */ 36