Lines Matching defs:obj
65 const cfg_obj_t *obj;
72 obj = cfg_tuple_get(ent, "class");
73 if (cfg_obj_isstring(obj)) {
75 DE_CONST(cfg_obj_asstring(obj), r.base);
79 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
86 obj = cfg_tuple_get(ent, "type");
87 if (cfg_obj_isstring(obj)) {
89 DE_CONST(cfg_obj_asstring(obj), r.base);
93 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
100 obj = cfg_tuple_get(ent, "name");
101 if (cfg_obj_isstring(obj)) {
102 str = cfg_obj_asstring(obj);
108 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
114 obj = cfg_tuple_get(ent, "order");
115 if (!cfg_obj_isstring(obj) ||
116 strcasecmp("order", cfg_obj_asstring(obj)) != 0) {
122 obj = cfg_tuple_get(ent, "ordering");
123 if (!cfg_obj_isstring(obj)) {
127 } else if (strcasecmp(cfg_obj_asstring(obj), "fixed") == 0) {
129 cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
133 } else if (strcasecmp(cfg_obj_asstring(obj), "random") != 0 &&
134 strcasecmp(cfg_obj_asstring(obj), "cyclic") != 0) {
135 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
137 cfg_obj_asstring(obj));
148 const cfg_obj_t *obj = NULL;
150 if (cfg_map_get(options, "rrset-order", &obj) != ISC_R_SUCCESS)
153 for (element = cfg_list_first(obj);
169 const cfg_obj_t *obj;
182 obj = cfg_tuple_get(alternates, "port");
183 if (cfg_obj_isuint32(obj)) {
184 isc_uint32_t val = cfg_obj_asuint32(obj);
186 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
191 obj = cfg_tuple_get(alternates, "addresses");
192 for (element = cfg_list_first(obj);
198 obj = cfg_tuple_get(value, "name");
199 str = cfg_obj_asstring(obj);
207 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
211 obj = cfg_tuple_get(value, "port");
212 if (cfg_obj_isuint32(obj)) {
213 isc_uint32_t val = cfg_obj_asuint32(obj);
215 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
260 const cfg_obj_t *obj;
264 obj = cfg_tuple_get(disabled, "name");
265 str = cfg_obj_asstring(obj);
270 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
275 obj = cfg_tuple_get(disabled, "algorithms");
277 for (element = cfg_list_first(obj);
300 nameexist(const cfg_obj_t *obj, const char *name, int value,
313 symvalue.as_cpointer = obj;
324 cfg_obj_log(obj, logctx, ISC_LOG_ERROR, fmt, key, file, line);
337 const cfg_obj_t *obj;
347 obj = cfg_tuple_get(secure, "name");
348 str = cfg_obj_asstring(obj);
353 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
426 const cfg_obj_t *options, *aclobj, *obj = NULL;
437 cfg_map_get(voptions, "recursion", &obj);
438 if (obj == NULL && config != NULL) {
442 cfg_map_get(options, "recursion", &obj);
444 if (obj == NULL)
447 recursion = cfg_obj_asboolean(obj);
503 const cfg_obj_t *obj = NULL;
529 obj = NULL;
530 (void)cfg_map_get(options, intervals[i].name, &obj);
531 if (obj == NULL)
533 val = cfg_obj_asuint32(obj);
535 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
541 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
548 obj = NULL;
549 cfg_map_get(options, "sig-validity-interval", &obj);
550 if (obj != NULL) {
553 validity = cfg_obj_asuint32(cfg_tuple_get(obj, "validity"));
554 resignobj = cfg_tuple_get(obj, "re-sign");
559 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
567 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
574 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
584 obj = NULL;
585 (void)cfg_map_get(options, "preferred-glue", &obj);
586 if (obj != NULL) {
588 str = cfg_obj_asstring(obj);
592 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
597 obj = NULL;
598 (void)cfg_map_get(options, "root-delegation-only", &obj);
599 if (obj != NULL) {
600 if (!cfg_obj_isvoid(obj)) {
610 for (element = cfg_list_first(obj);
621 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
633 obj = NULL;
634 (void)cfg_map_get(options, "disable-algorithms", &obj);
635 if (obj != NULL) {
636 for (element = cfg_list_first(obj);
640 obj = cfg_listelt_value(element);
641 tresult = disabled_algorithms(obj, logctx);
653 obj = NULL;
654 (void)cfg_map_get(options, "dnssec-lookaside", &obj);
655 if (obj != NULL) {
660 for (element = cfg_list_first(obj);
666 obj = cfg_listelt_value(element);
668 dlv = cfg_obj_asstring(cfg_tuple_get(obj, "domain"));
674 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
680 tresult = nameexist(obj, dlv, 1, symtab,
694 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
700 dlv = cfg_obj_asstring(cfg_tuple_get(obj,
707 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
720 obj = NULL;
721 (void)cfg_map_get(options, "dnssec-must-be-secure", &obj);
722 if (obj != NULL) {
728 for (element = cfg_list_first(obj);
732 obj = cfg_listelt_value(element);
733 tresult = mustbesecure(obj, symtab, logctx, mctx);
744 obj = NULL;
745 (void)cfg_map_get(options, "empty-server", &obj);
746 if (obj != NULL) {
747 str = cfg_obj_asstring(obj);
753 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
759 obj = NULL;
760 (void)cfg_map_get(options, "empty-contact", &obj);
761 if (obj != NULL) {
762 str = cfg_obj_asstring(obj);
768 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
774 obj = NULL;
775 (void)cfg_map_get(options, "disable-empty-zone", &obj);
776 for (element = cfg_list_first(obj);
780 obj = cfg_listelt_value(element);
781 str = cfg_obj_asstring(obj);
787 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
798 obj = NULL;
799 (void)cfg_map_get(options, "server-id", &obj);
800 if (obj != NULL && cfg_obj_isstring(obj) &&
801 strlen(cfg_obj_asstring(obj)) > 1024U) {
802 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
837 validate_masters(const cfg_obj_t *obj, const cfg_obj_t *config,
858 list = cfg_tuple_get(obj, "addresses");
890 tresult = get_masters_def(config, listname, &obj);
1029 const cfg_obj_t *obj = NULL;
1038 obj = NULL;
1039 if (cfg_map_get(options, nonzero[i], &obj) == ISC_R_SUCCESS &&
1040 cfg_obj_asuint32(obj) == 0) {
1041 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1059 const cfg_obj_t *obj = NULL;
1132 obj = NULL;
1133 (void)cfg_map_get(zoptions, "type", &obj);
1134 if (obj == NULL) {
1140 typestr = cfg_obj_asstring(obj);
1154 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1160 obj = cfg_tuple_get(zconfig, "class");
1161 if (cfg_obj_isstring(obj)) {
1164 DE_CONST(cfg_obj_asstring(obj), r.base);
1168 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1174 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1222 obj = NULL;
1224 cfg_map_get(zoptions, options[i].name, &obj) ==
1229 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1235 cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
1240 obj = NULL;
1256 obj = NULL;
1257 if (cfg_map_get(zoptions, "masters", &obj) != ISC_R_SUCCESS) {
1264 tresult = validate_masters(obj, config, &count,
1282 obj = NULL;
1283 res1 = cfg_map_get(zoptions, "allow-update", &obj);
1284 obj = NULL;
1285 res2 = cfg_map_get(zoptions, "update-policy", &obj);
1287 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1293 check_update_policy(obj, logctx) != ISC_R_SUCCESS)
1295 obj = NULL;
1296 res1 = cfg_map_get(zoptions, "sig-signing-type", &obj);
1298 isc_uint32_t type = cfg_obj_asuint32(obj);
1300 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1323 cfg_obj_log(obj, logctx,
1334 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
1345 obj = NULL;
1348 (void)cfg_map_get(voptions, "forwarders", &obj);
1349 if (obj == NULL) {
1353 (void)cfg_map_get(options, "forwarders", &obj);
1356 if (check_forward(zoptions, obj, logctx) != ISC_R_SUCCESS)
1370 obj = NULL;
1371 tresult = cfg_map_get(zoptions, "database", &obj);
1374 (strcmp("rbt", cfg_obj_asstring(obj)) == 0 ||
1375 strcmp("rbt64", cfg_obj_asstring(obj)) == 0))) {
1376 obj = NULL;
1377 tresult = cfg_map_get(zoptions, "file", &obj);
1583 const cfg_obj_t *obj;
1593 obj = cfg_listelt_value(element);
1594 str = cfg_obj_asstring(cfg_map_getname(obj));
1613 const cfg_obj_t *obj;
1647 obj = NULL;
1652 (void)cfg_map_get(v1, xfr, &obj);
1653 if (obj != NULL) {
1791 const cfg_obj_t *obj;
1912 obj = NULL;
1914 (void)cfg_map_get(voptions, "dnssec-enable", &obj);
1915 if (obj == NULL)
1916 (void)cfg_map_get(config, "dnssec-enable", &obj);
1917 if (obj == NULL)
1920 enablednssec = cfg_obj_asboolean(obj);
1922 obj = NULL;
1924 (void)cfg_map_get(voptions, "dnssec-validation", &obj);
1925 if (obj == NULL)
1926 (void)cfg_map_get(config, "dnssec-validation", &obj);
1927 if (obj == NULL)
1930 enablevalidation = cfg_obj_asboolean(obj);
1933 cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
1953 obj = cfg_listelt_value(element2);
1954 tresult = check_trusted_key(obj, logctx);
2239 const cfg_obj_t *obj;
2352 obj = NULL;
2353 tresult = cfg_map_get(options, "cache-file", &obj);
2355 cfg_obj_log(obj, logctx, ISC_LOG_ERROR,