/contrib/bind9/lib/dns/include/dns/private.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 55 lines · 13 code · 8 blank · 34 comment · 0 complexity · 4de69f4f9e3b668caccdce39f5f3284f MD5 · raw file

  1. /*
  2. * Copyright (C) 2009, 2012 Internet Systems Consortium, Inc. ("ISC")
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  9. * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  10. * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  11. * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  12. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  13. * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  14. * PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /* $Id$ */
  17. #include <isc/lang.h>
  18. #include <isc/types.h>
  19. #include <dns/types.h>
  20. #include <dns/db.h>
  21. #ifndef DNS_PRIVATE_H
  22. #define DNS_PRIVATE_H
  23. ISC_LANG_BEGINDECLS
  24. isc_result_t
  25. dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
  26. dns_rdatatype_t privatetype,
  27. isc_boolean_t *build_nsec, isc_boolean_t *build_nsec3);
  28. /*%<
  29. * Examine the NSEC, NSEC3PARAM and privatetype RRsets at the apex of the
  30. * database to determine which of NSEC or NSEC3 chains we are currently
  31. * maintaining. In normal operations only one of NSEC or NSEC3 is being
  32. * maintained but when we are transitiong between NSEC and NSEC3 we need
  33. * to update both sets of chains. If 'privatetype' is zero then the
  34. * privatetype RRset will not be examined.
  35. *
  36. * Requires:
  37. * \li 'db' is valid.
  38. * \li 'version' is valid or NULL.
  39. * \li 'build_nsec' is a pointer to a isc_boolean_t or NULL.
  40. * \li 'build_nsec3' is a pointer to a isc_boolean_t or NULL.
  41. *
  42. * Returns:
  43. * \li ISC_R_SUCCESS, 'build_nsec' and 'build_nsec3' will be valid.
  44. * \li other on error
  45. */
  46. ISC_LANG_ENDDECLS
  47. #endif