confkeys.c revision 29bf8316a33dbacaa4f37755bea495d6b9fac152
/*
* 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 (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;
}
}
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_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);
}
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;
if (r != ISC_R_SUCCESS) {
return (r);
}
}
l->magic = 0;
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);
}
{
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_SUCCESS);
}
{
dns_c_pklist_t *l;
isc_result_t r;
l = *list;
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)
{
(void) lctx;
} else {
}
}
}
const char *key)
{
isc_result_t r;
if (r == ISC_R_SUCCESS) {
}
return (r);
}
{
(void)lctx;
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
{
(void)lctx;
}
return (ISC_R_SUCCESS);
}
{
dns_c_pubkey_t *k;
if (res != ISC_R_SUCCESS) {
return (res);
}
*dest = k;
return (ISC_R_SUCCESS);
}
}
void
{
}
{
(void)lctx;
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
{
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)
{
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;
}