confkeys.c revision 499b34cea04a46823d003d4c0520c8b03e8513cb
/*
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: confkeys.c,v 1.31 2001/01/09 21:51:58 bwelling Exp $ */
#include <config.h>
#include <dns/confkeys.h>
#include <dns/confcommon.h>
static isc_result_t
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_kdeflist_t *l;
l = *list;
if (res != ISC_R_SUCCESS) {
return (res);
}
}
l->magic = 0;
isc_mem_put(l->mem, l, sizeof *l);
return (ISC_R_SUCCESS);
}
{
if (res != ISC_R_SUCCESS) {
return (res);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
}
return (ISC_R_SUCCESS);
}
{
if (copy) {
if (res != ISC_R_SUCCESS) {
return (res);
}
} else {
}
return (ISC_R_SUCCESS);
}
{
isc_result_t r;
break;
}
}
(void)dns_c_kdef_delete(&kd);
r = ISC_R_SUCCESS;
} else {
r = ISC_R_NOTFOUND;
}
return (r);
}
{
isc_result_t r;
break;
}
}
r = ISC_R_SUCCESS;
} else {
r = ISC_R_NOTFOUND;
}
return (r);
}
void
{
return;
}
}
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
}
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
void
{
}
{
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_kidlist_t *l;
l = isc_mem_get(mem, sizeof *l);
if (l == NULL) {
return (ISC_R_NOMEMORY);
}
l->magic = DNS_C_KEYIDLIST_MAGIC;
*list = l;
ISC_LIST_INIT(l->keyids);
return (ISC_R_SUCCESS);
}
{
dns_c_kidlist_t *l;
isc_result_t r;
l = *list;
r = keyid_delete(&ki);
if (r != ISC_R_SUCCESS) {
return (r);
}
}
l->magic = 0;
isc_mem_put(l->mem, l, sizeof *l);
return (ISC_R_SUCCESS);
}
{
isc_uint32_t count = 0;
count++;
}
return (count);
}
static isc_result_t
{
return (ISC_R_SUCCESS);
}
{
isc_result_t r;
r = keyid_delete(&ki);
} else {
r = ISC_R_SUCCESS;
}
return (r);
}
{
break;
}
}
}
void
{
}
void
{
return;
}
} else {
}
}
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_pklist_t *l;
isc_result_t r;
l = *list;
r = dns_c_pubkey_delete(&pk);
if (r != ISC_R_SUCCESS) {
return (r);
}
}
l->magic = 0;
isc_mem_put(l->mem, l, sizeof *l);
return (ISC_R_SUCCESS);
}
void
{
return;
}
}
}
{
isc_result_t r;
if (deepcopy) {
if (r != ISC_R_SUCCESS) {
return (r);
}
} else {
}
return (ISC_R_SUCCESS);
}
const char *key)
{
} else {
}
}
}
const char *key)
{
isc_result_t r;
if (r == ISC_R_SUCCESS) {
r = dns_c_pubkey_delete(&pk);
}
return (r);
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
}
return (ISC_R_SUCCESS);
}
{
dns_c_pubkey_t *k;
if (res != ISC_R_SUCCESS) {
return (res);
}
*dest = k;
return (ISC_R_SUCCESS);
}
}
void
{
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_tkeylist_t *l;
l = *list;
if (res != ISC_R_SUCCESS) {
return (res);
}
}
l->magic = 0;
isc_mem_put(l->mem, l, sizeof *l);
return (ISC_R_SUCCESS);
}
{
if (res != ISC_R_SUCCESS) {
return (res);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
}
return (ISC_R_SUCCESS);
}
void
{
} else {
}
}
}
{
if (copy) {
if (res != ISC_R_SUCCESS) {
return (res);
}
} else {
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_NOMEMORY);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
if (res != ISC_R_SUCCESS) {
return (res);
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
void
{
return;
}