Lines Matching refs:obj

522 		const cfg_obj_t *obj;
528 obj = cfg_listelt_value(element);
529 str = cfg_obj_asstring(obj);
575 const cfg_obj_t *obj;
612 obj = NULL;
613 result = cfg_map_get(zconfig, "server-addresses", &obj);
615 INSIST(obj != NULL);
616 result = configure_staticstub_serveraddrs(obj, zone,
624 obj = NULL;
625 result = cfg_map_get(zconfig, "server-names", &obj);
627 INSIST(obj != NULL);
628 result = configure_staticstub_servernames(obj, zone,
721 const cfg_obj_t *obj = NULL;
724 result = cfg_map_get(map, "type", &obj);
725 INSIST(result == ISC_R_SUCCESS && obj != NULL);
726 return (ns_config_getzonetype(obj));
804 const cfg_obj_t *obj;
875 obj = NULL;
876 result = cfg_map_get(zoptions, "database", &obj);
878 cpval = isc_mem_strdup(mctx, cfg_obj_asstring(obj));
903 obj = NULL;
904 result = cfg_map_get(zoptions, "file", &obj);
906 filename = cfg_obj_asstring(obj);
925 obj = NULL;
926 result= ns_config_get(maps, "masterfile-format", &obj);
928 const char *masterformatstr = cfg_obj_asstring(obj);
957 obj = NULL;
958 result = cfg_map_get(zoptions, "journal", &obj);
960 RETERR(dns_zone_setjournal(mayberaw, cfg_obj_asstring(obj)));
984 obj = NULL;
985 result = ns_config_get(maps, "dialup", &obj);
986 INSIST(result == ISC_R_SUCCESS && obj != NULL);
987 if (cfg_obj_isboolean(obj)) {
988 if (cfg_obj_asboolean(obj))
993 const char *dialupstr = cfg_obj_asstring(obj);
1009 obj = NULL;
1010 result = ns_config_get(maps, "zone-statistics", &obj);
1011 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1012 if (cfg_obj_isboolean(obj)) {
1013 if (cfg_obj_asboolean(obj))
1018 const char *levelstr = cfg_obj_asstring(obj);
1062 obj = NULL;
1063 result = ns_config_get(maps, "notify", &obj);
1064 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1065 if (cfg_obj_isboolean(obj)) {
1066 if (cfg_obj_asboolean(obj))
1071 const char *notifystr = cfg_obj_asstring(obj);
1083 obj = NULL;
1084 result = ns_config_get(maps, "also-notify", &obj);
1089 RETERR(ns_config_getipandkeylist(config, obj, mctx,
1104 obj = NULL;
1105 result = ns_config_get(maps, "notify-source", &obj);
1106 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1107 RETERR(dns_zone_setnotifysrc4(zone, cfg_obj_assockaddr(obj)));
1108 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1110 obj = NULL;
1111 result = ns_config_get(maps, "notify-source-v6", &obj);
1112 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1113 RETERR(dns_zone_setnotifysrc6(zone, cfg_obj_assockaddr(obj)));
1114 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1116 obj = NULL;
1117 result = ns_config_get(maps, "notify-to-soa", &obj);
1118 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1120 cfg_obj_asboolean(obj));
1129 obj = NULL;
1130 result = ns_config_get(maps, "max-transfer-time-out", &obj);
1131 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1132 dns_zone_setmaxxfrout(zone, cfg_obj_asuint32(obj) * 60);
1134 obj = NULL;
1135 result = ns_config_get(maps, "max-transfer-idle-out", &obj);
1136 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1137 dns_zone_setidleout(zone, cfg_obj_asuint32(obj) * 60);
1139 obj = NULL;
1140 result = ns_config_get(maps, "max-journal-size", &obj);
1141 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1145 if (cfg_obj_isstring(obj)) {
1146 const char *str = cfg_obj_asstring(obj);
1151 value = cfg_obj_asuint64(obj);
1153 cfg_obj_log(obj, ns_g_lctx,
1167 obj = NULL;
1168 result = ns_config_get(maps, "ixfr-from-differences", &obj);
1169 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1170 if (cfg_obj_isboolean(obj))
1171 ixfrdiff = cfg_obj_asboolean(obj);
1172 else if (!strcasecmp(cfg_obj_asstring(obj), "master") &&
1175 else if (!strcasecmp(cfg_obj_asstring(obj), "slave") &&
1189 obj = NULL;
1190 result = ns_config_get(maps, "request-ixfr", &obj);
1192 dns_zone_setrequestixfr(zone, cfg_obj_asboolean(obj));
1194 checknames(ztype, maps, &obj);
1195 INSIST(obj != NULL);
1196 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1199 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1201 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1221 obj = NULL;
1222 result = ns_config_get(maps, "notify-delay", &obj);
1223 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1224 dns_zone_setnotifydelay(zone, cfg_obj_asuint32(obj));
1226 obj = NULL;
1227 result = ns_config_get(maps, "check-sibling", &obj);
1228 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1230 cfg_obj_asboolean(obj));
1232 obj = NULL;
1233 result = ns_config_get(maps, "check-spf", &obj);
1234 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1235 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1237 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1243 obj = NULL;
1244 result = ns_config_get(maps, "zero-no-soa-ttl", &obj);
1245 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1246 dns_zone_setzeronosoattl(zone, cfg_obj_asboolean(obj));
1248 obj = NULL;
1249 result = ns_config_get(maps, "nsec3-test-zone", &obj);
1250 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1252 cfg_obj_asboolean(obj));
1256 obj = NULL;
1257 result = ns_config_get(maps, "max-journal-size", &obj);
1258 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1260 if (cfg_obj_isstring(obj)) {
1261 const char *str = cfg_obj_asstring(obj);
1266 value = cfg_obj_asuint64(obj);
1268 cfg_obj_log(obj, ns_g_lctx,
1307 obj = NULL;
1308 result = ns_config_get(maps, "sig-validity-interval", &obj);
1309 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1313 validity = cfg_tuple_get(obj, "validity");
1317 resign = cfg_tuple_get(obj, "re-sign");
1331 obj = NULL;
1332 result = ns_config_get(maps, "key-directory", &obj);
1334 filename = cfg_obj_asstring(obj);
1338 obj = NULL;
1339 result = ns_config_get(maps, "sig-signing-signatures", &obj);
1340 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1341 dns_zone_setsignatures(zone, cfg_obj_asuint32(obj));
1343 obj = NULL;
1344 result = ns_config_get(maps, "sig-signing-nodes", &obj);
1345 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1346 dns_zone_setnodes(zone, cfg_obj_asuint32(obj));
1348 obj = NULL;
1349 result = ns_config_get(maps, "sig-signing-type", &obj);
1350 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1351 dns_zone_setprivatetype(zone, cfg_obj_asuint32(obj));
1353 obj = NULL;
1354 result = ns_config_get(maps, "update-check-ksk", &obj);
1355 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1357 cfg_obj_asboolean(obj));
1359 obj = NULL;
1360 result = ns_config_get(maps, "dnssec-dnskey-kskonly", &obj);
1361 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1363 cfg_obj_asboolean(obj));
1365 obj = NULL;
1366 result = ns_config_get(maps, "dnssec-loadkeys-interval", &obj);
1367 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1369 cfg_obj_asuint32(obj)));
1371 obj = NULL;
1372 result = cfg_map_get(zoptions, "auto-dnssec", &obj);
1374 const char *arg = cfg_obj_asstring(obj);
1399 obj = NULL;
1400 result = ns_config_get(maps, "check-wildcard", &obj);
1402 check = cfg_obj_asboolean(obj);
1407 obj = NULL;
1408 result = ns_config_get(maps, "check-dup-records", &obj);
1409 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1410 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1413 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1415 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1422 obj = NULL;
1423 result = ns_config_get(maps, "check-mx", &obj);
1424 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1425 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1428 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1430 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1437 obj = NULL;
1438 result = ns_config_get(maps, "check-integrity", &obj);
1439 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1441 cfg_obj_asboolean(obj));
1443 obj = NULL;
1444 result = ns_config_get(maps, "check-mx-cname", &obj);
1445 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1446 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1449 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1451 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1458 obj = NULL;
1459 result = ns_config_get(maps, "check-srv-cname", &obj);
1460 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1461 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1464 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1466 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1474 obj = NULL;
1475 result = ns_config_get(maps, "dnssec-secure-to-insecure", &obj);
1476 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1478 cfg_obj_asboolean(obj));
1480 obj = NULL;
1481 result = cfg_map_get(zoptions, "dnssec-update-mode", &obj);
1483 const char *arg = cfg_obj_asstring(obj);
1493 obj = NULL;
1494 result = ns_config_get(maps, "serial-update-method", &obj);
1495 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1496 if (strcasecmp(cfg_obj_asstring(obj), "unixtime") == 0)
1512 obj = NULL;
1513 (void)cfg_map_get(zoptions, "masters", &obj);
1514 if (obj != NULL) {
1517 RETERR(ns_config_getipandkeylist(config, obj, mctx,
1533 obj = NULL;
1534 result = ns_config_get(maps, "multi-master", &obj);
1535 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1536 multi = cfg_obj_asboolean(obj);
1540 obj = NULL;
1541 result = ns_config_get(maps, "max-transfer-time-in", &obj);
1542 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1543 dns_zone_setmaxxfrin(mayberaw, cfg_obj_asuint32(obj) * 60);
1545 obj = NULL;
1546 result = ns_config_get(maps, "max-transfer-idle-in", &obj);
1547 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1548 dns_zone_setidlein(mayberaw, cfg_obj_asuint32(obj) * 60);
1550 obj = NULL;
1551 result = ns_config_get(maps, "max-refresh-time", &obj);
1552 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1553 dns_zone_setmaxrefreshtime(mayberaw, cfg_obj_asuint32(obj));
1555 obj = NULL;
1556 result = ns_config_get(maps, "min-refresh-time", &obj);
1557 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1558 dns_zone_setminrefreshtime(mayberaw, cfg_obj_asuint32(obj));
1560 obj = NULL;
1561 result = ns_config_get(maps, "max-retry-time", &obj);
1562 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1563 dns_zone_setmaxretrytime(mayberaw, cfg_obj_asuint32(obj));
1565 obj = NULL;
1566 result = ns_config_get(maps, "min-retry-time", &obj);
1567 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1568 dns_zone_setminretrytime(mayberaw, cfg_obj_asuint32(obj));
1570 obj = NULL;
1571 result = ns_config_get(maps, "transfer-source", &obj);
1572 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1574 cfg_obj_assockaddr(obj)));
1575 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1577 obj = NULL;
1578 result = ns_config_get(maps, "transfer-source-v6", &obj);
1579 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1581 cfg_obj_assockaddr(obj)));
1582 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1584 obj = NULL;
1585 result = ns_config_get(maps, "alt-transfer-source", &obj);
1586 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1588 cfg_obj_assockaddr(obj)));
1590 obj = NULL;
1591 result = ns_config_get(maps, "alt-transfer-source-v6", &obj);
1592 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1594 cfg_obj_assockaddr(obj)));
1596 obj = NULL;
1597 (void)ns_config_get(maps, "use-alt-transfer-source", &obj);
1598 if (obj == NULL) {
1609 alt = cfg_obj_asboolean(obj);
1612 obj = NULL;
1613 (void)ns_config_get(maps, "try-tcp-refresh", &obj);
1615 cfg_obj_asboolean(obj));
1656 const cfg_obj_t *obj = NULL;
1688 obj = NULL;
1689 (void)cfg_map_get(zoptions, "inline-signing", &obj);
1690 if ((obj == NULL || !cfg_obj_asboolean(obj)) && has_raw) {
1694 } else if ((obj != NULL && cfg_obj_asboolean(obj)) && !has_raw) {
1706 obj = NULL;
1707 (void)cfg_map_get(zoptions, "file", &obj);
1708 if (obj != NULL)
1709 cfilename = cfg_obj_asstring(obj);