/*
* Copyright (C) 1999-2001, 2004-2007, 2009, 2010, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: tkeyconf.c,v 1.33 2010/12/20 23:47:20 tbox Exp $ */
/*! \file */
#include <config.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <named/tkeyconf.h>
#define RETERR(x) do { \
result = (x); \
if (result != ISC_R_SUCCESS) \
goto failure; \
} while (0)
"%s", msg)
{
const char *s;
isc_uint32_t n;
isc_buffer_t b;
int type;
if (result != ISC_R_SUCCESS)
return (result);
if (result == ISC_R_SUCCESS) {
isc_buffer_constinit(&b, s, strlen(s));
isc_buffer_add(&b, strlen(s));
}
if (result == ISC_R_SUCCESS) {
s = cfg_obj_asstring(obj);
isc_buffer_constinit(&b, s, strlen(s));
isc_buffer_add(&b, strlen(s));
goto failure;
}
}
if (result == ISC_R_SUCCESS) {
s = cfg_obj_asstring(obj);
isc_buffer_constinit(&b, s, strlen(s));
isc_buffer_add(&b, strlen(s));
}
if (result == ISC_R_SUCCESS) {
s = cfg_obj_asstring(obj);
goto failure;
}
}
return (ISC_R_SUCCESS);
return (result);
}