/contrib/bind9/lib/dns/rdata/generic/spf_99.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 51 lines · 20 code · 9 blank · 22 comment · 0 complexity · 20cb3cb096c9dca29f2e47c9ca4e3a87 MD5 · raw file

  1. /*
  2. * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
  3. * Copyright (C) 1998-2001 Internet Software Consortium.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  10. * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  11. * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  12. * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  13. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  14. * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. * PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef GENERIC_SPF_99_H
  18. #define GENERIC_SPF_99_H 1
  19. /* $Id: spf_99.h,v 1.4 2007/06/19 23:47:17 tbox Exp $ */
  20. typedef struct dns_rdata_spf_string {
  21. isc_uint8_t length;
  22. unsigned char *data;
  23. } dns_rdata_spf_string_t;
  24. typedef struct dns_rdata_spf {
  25. dns_rdatacommon_t common;
  26. isc_mem_t *mctx;
  27. unsigned char *txt;
  28. isc_uint16_t txt_len;
  29. /* private */
  30. isc_uint16_t offset;
  31. } dns_rdata_spf_t;
  32. /*
  33. * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
  34. * via rdatastructpre.h and rdatastructsuf.h.
  35. */
  36. isc_result_t
  37. dns_rdata_spf_first(dns_rdata_spf_t *);
  38. isc_result_t
  39. dns_rdata_spf_next(dns_rdata_spf_t *);
  40. isc_result_t
  41. dns_rdata_spf_current(dns_rdata_spf_t *, dns_rdata_spf_string_t *);
  42. #endif /* GENERIC_SPF_99_H */