check.c revision 9198ab377b1cbf07d6d0c6eec25296c135bd66bd
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence * Copyright (C) 2001-2003 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
e44e0ff3850931e7a79e4c86363f52990536f7bfDavid Lawrence * copyright notice and this permission notice appear in all copies.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
821644d49b73b49f2abc5463bc53a3132f612478Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
821644d49b73b49f2abc5463bc53a3132f612478Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
c04f6cf67dc3c694d25cf163a428a66030c396d4Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
c04f6cf67dc3c694d25cf163a428a66030c396d4Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f333ea9bdd3f85b74ae790e6c8ce2684295b3483Andreas Gustafsson * PERFORMANCE OF THIS SOFTWARE.
c04f6cf67dc3c694d25cf163a428a66030c396d4Mark Andrews/* $Id: check.c,v 1.134 2011/08/30 05:16:14 marka Exp $ */
static isc_result_t
isc_buffer_t b;
const char *str;
r.base);
r.base);
#if !DNS_RDATASET_FIXED
return (result);
static isc_result_t
return (result);
return (result);
static isc_result_t
const char *str;
return (ISC_R_SUCCESS);
0, NULL);
return (result);
static isc_result_t
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_SUCCESS);
static isc_result_t
const char *str;
isc_buffer_t b;
r.base);
return (result);
static isc_result_t
char *key;
const char *file;
unsigned int line;
return (ISC_R_NOMEMORY);
return (result);
static isc_result_t
const char *str;
isc_buffer_t b;
return (result);
static isc_result_t
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
return (result);
static isc_result_t
unsigned int prefixlen;
int nbytes;
return (ISC_R_SUCCESS);
nbytes++;
sizeof(netaddrbuf));
return (result);
static isc_result_t
NULL };
return (result);
static isc_result_t
return (result);
return (result);
const char *name;
unsigned int scale;
unsigned int max;
static isc_result_t
const char *str;
isc_buffer_t b;
static const char *server_contact[] = {
validity);
const char *str;
str);
const char *str;
isc_buffer_t b;
0, NULL);
str);
const char *dlv;
0, NULL);
NULL);
dlv);
str);
return (result);
static isc_result_t
return (result);
const char *listname;
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
static isc_result_t
return (result);
const char *listname;
count++;
listname);
void * new;
goto cleanup;
if (stackcount != 0) {
void *ptr;
goto newlist;
if (pushed != 0) {
goto resume;
void *ptr;
return (result);
static isc_result_t
const char *str;
isc_buffer_t b;
return (ISC_R_SUCCESS);
return (result);
const char *name;
int allowed;
} optionstable;
static isc_result_t
const char *znamestr;
const char *typestr;
unsigned int ztype;
isc_buffer_t b;
REDIRECTZONE },
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
znamestr);
znamestr);
znamestr);
znamestr);
const char *arg;
znamestr);
arg);
if (root) {
const char *snamestr;
0, NULL);
znamestr);
return (result);
typedef struct keyalgorithms {
const char *name;
const char *algorithm;
{ "hmac-md5.sig-alg.reg.int", 0 },
{ "hmac-md5.sig-alg.reg.int.", 0 },
{ NULL, 0 }
keyname);
return (ISC_R_FAILURE);
return (result);
return (ISC_R_NOTFOUND);
return (ISC_R_RANGE);
return (ISC_R_RANGE);
keyname);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
isc_buffer_t b;
char *keyname;
0, NULL);
return (tresult);
return (ISC_R_NOMEMORY);
const char *file;
unsigned int line;
return (tresult);
return (result);
const char *v4;
const char *v6;
} sources[] = {
static isc_boolean_t
const char *str;
return (ISC_FALSE);
return (ISC_TRUE);
return (ISC_FALSE);
static isc_result_t
const char *xfr;
const char *keyval;
isc_buffer_t b;
int source;
return (ISC_R_SUCCESS);
source = 0;
0, NULL);
return (result);
static isc_result_t
isc_buffer_t b;
isc_region_t r;
if (managed) {
const char *initmethod;
isc_buffer_usedregion(&b, &r);
return (result);
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
return (tresult);
return (tresult);
* Check that dnssec-enable/dnssec-validation are sensible.
valstr);
return (result);
default_channels[] = {
static isc_result_t
const char *channelname;
const char *catname;
return (ISC_R_SUCCESS);
return (result);
&symvalue);
return (result);
static isc_result_t
const char *keyval;
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
const char *path;
return (ISC_R_SUCCESS);
logctx);
path);
#ifdef NEED_SECURE_DIRECTORY
logctx);
return (result);
const char *file;
unsigned int line;
const char *aclname;
aclname);
const char *name;
const char *aclname;
const char *name;
return (result);