confkeys.c revision 90adbb5f1cfeac900fecf654c9000d7f26c06b98
/*
* Copyright (C) 1999 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.
*/
#include <config.h>
#include <string.h>
#include <isc/assertions.h>
#include <dns/confkeys.h>
#include <dns/confcommon.h>
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_kdeflist_t *l;
l = *list;
if (l == NULL) {
return (ISC_R_SUCCESS);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
}
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;
}
}
r = ISC_R_SUCCESS;
} else {
r = ISC_R_NOTFOUND;
}
return (r);
}
{
isc_result_t r;
(void)lctx;
break;
}
}
r = ISC_R_SUCCESS;
} else {
r = ISC_R_NOTFOUND;
}
return (r);
}
void
{
return;
}
}
}
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
}
return (ISC_R_SUCCESS);
}
{
(void)lctx;
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
{
const char *quote = "";
quote = "\"";
}
}
{
(void)lctx;
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
(void)lctx;
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_kidlist_t *l;
(void)lctx;
l = isc_mem_get(mem, sizeof *l);
if (l == NULL) {
return (ISC_R_NOMEMORY);
}
*list = l;
ISC_LIST_INIT(l->keyids);
return (ISC_R_SUCCESS);
}
{
dns_c_kidlist_t *l;
isc_result_t r;
l = *list;
if (l == NULL) {
return (ISC_R_SUCCESS);
}
if (r != ISC_R_SUCCESS) {
return (r);
}
}
isc_mem_put(l->mem, l, sizeof *l);
return (ISC_R_SUCCESS);
}
static isc_result_t
dns_c_kid_t **keyid)
{
(void)lctx;
return (ISC_R_SUCCESS);
}
return (ISC_R_SUCCESS);
}
{
isc_result_t r;
} else {
r = ISC_R_SUCCESS;
}
return (r);
}
{
(void)lctx;
break;
}
}
}
void
{
const char *quote;
return;
}
} else {
quote = "\"";
} else {
quote = "";
}
}
}
}
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
(void)lctx;
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);
}
return (ISC_TRUE);
return (ISC_FALSE);
}
void
{
return;
}
}
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
dns_c_tkeylist_t *l;
l = *list;
if (l == NULL) {
return (ISC_R_SUCCESS);
}
if (res != ISC_R_SUCCESS) {
return (res);
}
}
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
{
return;
}
}
}
{
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);
}
dns_c_tkey_t **tkey)
{
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);
}
{
(void)lctx;
return (ISC_R_SUCCESS);
}
{
(void)lctx;
return (ISC_R_SUCCESS);
}
{
(void)lctx;
return (ISC_R_SUCCESS);
}
{
(void)lctx;
return (ISC_R_SUCCESS);
}
void
{
return;
}