confacl.c revision 15a44745412679c30a6d022733925af70a38b715
/*
* Copyright (C) 1999, 2000 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: confacl.c,v 1.19 2000/07/27 09:46:56 tale Exp $ */
#include <config.h>
static isc_result_t
"Out of memory");
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
return (ISC_R_SUCCESS);
}
void
return;
}
}
}
}
isc_result_t r;
r = acl_delete(&elem);
if (r != ISC_R_SUCCESS) {
"Failed to delete acl element");
return (r);
}
}
return (ISC_R_SUCCESS);
}
{
break;
}
}
}
}
acl_delete(&acl);
return (ISC_R_SUCCESS);
}
}
return (ISC_R_NOTFOUND);
}
{
"Not enough memory");
return (ISC_R_NOMEMORY);
}
"Not enough memory");
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
void
} else {
}
} else {
}
}
{
}
if (deepcopy) {
} else {
res = ISC_R_SUCCESS;
}
return (res);
}
{
isc_result_t r;
r = ISC_R_SUCCESS;
} else {
if (r != ISC_R_SUCCESS) {
return (r);
}
}
return (r);
}
/* XXX this should really be a function in the confip module */
isc_result_t r;
return (ISC_R_SUCCESS);
}
case dns_c_ipmatch_indirect:
break;
case dns_c_ipmatch_acl:
if (r != ISC_R_SUCCESS) {
return (ISC_R_FAILURE);
}
/* XXX I this should be inserted in place and
* not appended
*/
}
default:
; /* Do nothing */
}
}
}
return (ISC_R_SUCCESS);
}
static isc_result_t
else
res = ISC_R_SUCCESS;
return (res);
}