keydata.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id: keydata.h,v 1.2 2009/06/30 02:52:32 each Exp $ */
00018 
00019 #ifndef DNS_KEYDATA_H
00020 #define DNS_KEYDATA_H 1
00021 
00022 /*****
00023  ***** Module Info
00024  *****/
00025 
00026 /*! \file dns/keydata.h
00027  * \brief
00028  * KEYDATA utilities.
00029  */
00030 
00031 /***
00032  *** Imports
00033  ***/
00034 
00035 #include <isc/lang.h>
00036 #include <isc/types.h>
00037 
00038 #include <dns/types.h>
00039 #include <dns/rdatastruct.h>
00040 
00041 ISC_LANG_BEGINDECLS
00042 
00043 isc_result_t
00044 dns_keydata_todnskey(dns_rdata_keydata_t *keydata,
00045                      dns_rdata_dnskey_t *dnskey, isc_mem_t *mctx);
00046 
00047 isc_result_t
00048 dns_keydata_fromdnskey(dns_rdata_keydata_t *keydata,
00049                        dns_rdata_dnskey_t *dnskey,
00050                        isc_uint32_t refresh, isc_uint32_t addhd,
00051                        isc_uint32_t removehd, isc_mem_t *mctx);
00052 
00053 ISC_LANG_ENDDECLS
00054 
00055 #endif /* DNS_KEYDATA_H */

Generated on Tue Apr 28 17:40:57 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha