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

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 55 lines · 17 code · 12 blank · 26 comment · 0 complexity · c165d70ba2ee070cd97f861c81cf2f70 MD5 · raw file

  1. /*
  2. * Copyright (C) 2009 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: keydata.h,v 1.2 2009/06/30 02:52:32 each Exp $ */
  17. #ifndef DNS_KEYDATA_H
  18. #define DNS_KEYDATA_H 1
  19. /*****
  20. ***** Module Info
  21. *****/
  22. /*! \file dns/keydata.h
  23. * \brief
  24. * KEYDATA utilities.
  25. */
  26. /***
  27. *** Imports
  28. ***/
  29. #include <isc/lang.h>
  30. #include <isc/types.h>
  31. #include <dns/types.h>
  32. #include <dns/rdatastruct.h>
  33. ISC_LANG_BEGINDECLS
  34. isc_result_t
  35. dns_keydata_todnskey(dns_rdata_keydata_t *keydata,
  36. dns_rdata_dnskey_t *dnskey, isc_mem_t *mctx);
  37. isc_result_t
  38. dns_keydata_fromdnskey(dns_rdata_keydata_t *keydata,
  39. dns_rdata_dnskey_t *dnskey,
  40. isc_uint32_t refresh, isc_uint32_t addhd,
  41. isc_uint32_t removehd, isc_mem_t *mctx);
  42. ISC_LANG_ENDDECLS
  43. #endif /* DNS_KEYDATA_H */