00001 /* 00002 * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC") 00003 * Copyright (C) 1999-2001 Internet Software Consortium. 00004 * 00005 * Permission to use, copy, modify, and/or distribute this software for any 00006 * purpose with or without fee is hereby granted, provided that the above 00007 * copyright notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 00010 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 00011 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 00012 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 00013 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 00014 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00015 * PERFORMANCE OF THIS SOFTWARE. 00016 */ 00017 00018 /* $Id: tsigconf.h,v 1.18 2009/06/11 23:47:55 tbox Exp $ */ 00019 00020 #ifndef NS_TSIGCONF_H 00021 #define NS_TSIGCONF_H 1 00022 00023 /*! \file */ 00024 00025 #include <isc/types.h> 00026 #include <isc/lang.h> 00027 00028 ISC_LANG_BEGINDECLS 00029 00030 isc_result_t 00031 ns_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig, 00032 isc_mem_t *mctx, dns_tsig_keyring_t **ringp); 00033 /*%< 00034 * Create a TSIG key ring and configure it according to the 'key' 00035 * statements in the global and view configuration objects. 00036 * 00037 * Requires: 00038 * \li 'config' is not NULL. 00039 * \li 'vconfig' is not NULL. 00040 * \li 'mctx' is not NULL 00041 * \li 'ringp' is not NULL, and '*ringp' is NULL 00042 * 00043 * Returns: 00044 * \li ISC_R_SUCCESS 00045 * \li ISC_R_NOMEMORY 00046 */ 00047 00048 ISC_LANG_ENDDECLS 00049 00050 #endif /* NS_TSIGCONF_H */