Lines Matching defs:obj

484 		const cfg_obj_t *obj;
490 obj = cfg_listelt_value(element);
491 str = cfg_obj_asstring(obj);
537 const cfg_obj_t *obj;
574 obj = NULL;
575 result = cfg_map_get(zconfig, "server-addresses", &obj);
577 INSIST(obj != NULL);
578 result = configure_staticstub_serveraddrs(obj, zone,
586 obj = NULL;
587 result = cfg_map_get(zconfig, "server-names", &obj);
589 INSIST(obj != NULL);
590 result = configure_staticstub_servernames(obj, zone,
685 const cfg_obj_t *obj = NULL;
688 result = cfg_map_get(map, "type", &obj);
689 INSIST(result == ISC_R_SUCCESS && obj != NULL);
690 return (ns_config_getzonetype(obj));
769 const cfg_obj_t *obj;
845 obj = NULL;
846 result = cfg_map_get(zoptions, "database", &obj);
848 cpval = isc_mem_strdup(mctx, cfg_obj_asstring(obj));
852 obj = NULL;
853 result = cfg_map_get(zoptions, "dlz", &obj);
855 const char *dlzname = cfg_obj_asstring(obj);
891 obj = NULL;
892 result = cfg_map_get(zoptions, "file", &obj);
894 filename = cfg_obj_asstring(obj);
913 obj = NULL;
914 result = ns_config_get(maps, "masterfile-format", &obj);
916 const char *masterformatstr = cfg_obj_asstring(obj);
928 obj = NULL;
929 result = ns_config_get(maps, "masterfile-style", &obj);
931 const char *masterstylestr = cfg_obj_asstring(obj);
934 cfg_obj_log(obj, ns_g_lctx, ISC_LOG_ERROR,
949 obj = NULL;
950 result = ns_config_get(maps, "max-zone-ttl", &obj);
960 if (cfg_obj_isuint32(obj))
961 maxttl = cfg_obj_asuint32(obj);
967 obj = NULL;
968 result = ns_config_get(maps, "max-records", &obj);
969 INSIST(result == ISC_R_SUCCESS && obj != NULL);
970 dns_zone_setmaxrecords(mayberaw, cfg_obj_asuint32(obj));
995 obj = NULL;
996 result = cfg_map_get(zoptions, "journal", &obj);
998 RETERR(dns_zone_setjournal(mayberaw, cfg_obj_asstring(obj)));
1022 obj = NULL;
1023 result = ns_config_get(maps, "dialup", &obj);
1024 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1025 if (cfg_obj_isboolean(obj)) {
1026 if (cfg_obj_asboolean(obj))
1031 const char *dialupstr = cfg_obj_asstring(obj);
1047 obj = NULL;
1048 result = ns_config_get(maps, "zone-statistics", &obj);
1049 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1050 if (cfg_obj_isboolean(obj)) {
1051 if (cfg_obj_asboolean(obj))
1056 const char *levelstr = cfg_obj_asstring(obj);
1092 obj = NULL;
1093 result = ns_config_get(maps, "notify", &obj);
1094 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1095 if (cfg_obj_isboolean(obj)) {
1096 if (cfg_obj_asboolean(obj))
1101 const char *notifystr = cfg_obj_asstring(obj);
1113 obj = NULL;
1114 result = ns_config_get(maps, "also-notify", &obj);
1124 RETERR(ns_config_getipandkeylist(config, obj, mctx,
1136 obj = NULL;
1137 result = ns_config_get(maps, "notify-source", &obj);
1138 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1139 RETERR(dns_zone_setnotifysrc4(zone, cfg_obj_assockaddr(obj)));
1140 dscp = cfg_obj_getdscp(obj);
1144 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1146 obj = NULL;
1147 result = ns_config_get(maps, "notify-source-v6", &obj);
1148 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1149 RETERR(dns_zone_setnotifysrc6(zone, cfg_obj_assockaddr(obj)));
1150 dscp = cfg_obj_getdscp(obj);
1154 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1156 obj = NULL;
1157 result = ns_config_get(maps, "notify-to-soa", &obj);
1158 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1160 cfg_obj_asboolean(obj));
1169 obj = NULL;
1170 result = ns_config_get(maps, "max-transfer-time-out", &obj);
1171 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1172 dns_zone_setmaxxfrout(zone, cfg_obj_asuint32(obj) * 60);
1174 obj = NULL;
1175 result = ns_config_get(maps, "max-transfer-idle-out", &obj);
1176 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1177 dns_zone_setidleout(zone, cfg_obj_asuint32(obj) * 60);
1179 obj = NULL;
1180 result = ns_config_get(maps, "max-journal-size", &obj);
1181 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1185 if (cfg_obj_isstring(obj)) {
1186 const char *str = cfg_obj_asstring(obj);
1191 value = cfg_obj_asuint64(obj);
1193 cfg_obj_log(obj, ns_g_lctx,
1207 obj = NULL;
1208 result = ns_config_get(maps, "ixfr-from-differences", &obj);
1209 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1210 if (cfg_obj_isboolean(obj))
1211 ixfrdiff = cfg_obj_asboolean(obj);
1212 else if (!strcasecmp(cfg_obj_asstring(obj), "master") &&
1215 else if (!strcasecmp(cfg_obj_asstring(obj), "slave") &&
1229 obj = NULL;
1230 result = ns_config_get(maps, "request-expire", &obj);
1232 dns_zone_setrequestexpire(zone, cfg_obj_asboolean(obj));
1234 obj = NULL;
1235 result = ns_config_get(maps, "request-ixfr", &obj);
1237 dns_zone_setrequestixfr(zone, cfg_obj_asboolean(obj));
1239 checknames(ztype, maps, &obj);
1240 INSIST(obj != NULL);
1241 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1244 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1246 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1266 obj = NULL;
1267 result = ns_config_get(maps, "notify-delay", &obj);
1268 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1269 dns_zone_setnotifydelay(zone, cfg_obj_asuint32(obj));
1271 obj = NULL;
1272 result = ns_config_get(maps, "check-sibling", &obj);
1273 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1275 cfg_obj_asboolean(obj));
1277 obj = NULL;
1278 result = ns_config_get(maps, "check-spf", &obj);
1279 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1280 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1282 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1288 obj = NULL;
1289 result = ns_config_get(maps, "zero-no-soa-ttl", &obj);
1290 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1291 dns_zone_setzeronosoattl(zone, cfg_obj_asboolean(obj));
1293 obj = NULL;
1294 result = ns_config_get(maps, "nsec3-test-zone", &obj);
1295 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1297 cfg_obj_asboolean(obj));
1301 obj = NULL;
1302 result = ns_config_get(maps, "max-journal-size", &obj);
1303 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1305 if (cfg_obj_isstring(obj)) {
1306 const char *str = cfg_obj_asstring(obj);
1311 value = cfg_obj_asuint64(obj);
1313 cfg_obj_log(obj, ns_g_lctx,
1352 obj = NULL;
1353 result = ns_config_get(maps, "sig-validity-interval", &obj);
1354 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1358 validity = cfg_tuple_get(obj, "validity");
1362 resign = cfg_tuple_get(obj, "re-sign");
1376 obj = NULL;
1377 result = ns_config_get(maps, "key-directory", &obj);
1379 filename = cfg_obj_asstring(obj);
1383 obj = NULL;
1384 result = ns_config_get(maps, "sig-signing-signatures", &obj);
1385 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1386 dns_zone_setsignatures(zone, cfg_obj_asuint32(obj));
1388 obj = NULL;
1389 result = ns_config_get(maps, "sig-signing-nodes", &obj);
1390 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1391 dns_zone_setnodes(zone, cfg_obj_asuint32(obj));
1393 obj = NULL;
1394 result = ns_config_get(maps, "sig-signing-type", &obj);
1395 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1396 dns_zone_setprivatetype(zone, cfg_obj_asuint32(obj));
1398 obj = NULL;
1399 result = ns_config_get(maps, "update-check-ksk", &obj);
1400 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1402 cfg_obj_asboolean(obj));
1404 obj = NULL;
1405 result = ns_config_get(maps, "dnssec-dnskey-kskonly", &obj);
1406 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1408 cfg_obj_asboolean(obj));
1410 obj = NULL;
1411 result = ns_config_get(maps, "dnssec-loadkeys-interval", &obj);
1412 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1414 cfg_obj_asuint32(obj)));
1416 obj = NULL;
1417 result = cfg_map_get(zoptions, "auto-dnssec", &obj);
1419 const char *arg = cfg_obj_asstring(obj);
1444 obj = NULL;
1445 result = ns_config_get(maps, "check-wildcard", &obj);
1447 check = cfg_obj_asboolean(obj);
1457 obj = NULL;
1459 result = ns_config_get(maps, "check-dup-records", &obj);
1460 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1461 dupcheck = cfg_obj_asstring(obj);
1464 &obj);
1466 dupcheck = cfg_obj_asstring(obj);
1483 obj = NULL;
1484 result = ns_config_get(maps, "check-mx", &obj);
1485 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1486 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1489 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1491 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1503 obj = NULL;
1505 result = ns_config_get(maps, "check-integrity", &obj);
1506 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1508 cfg_obj_asboolean(obj));
1512 &obj);
1514 check = cfg_obj_asboolean(obj);
1519 obj = NULL;
1520 result = ns_config_get(maps, "check-mx-cname", &obj);
1521 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1522 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1525 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1527 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1534 obj = NULL;
1535 result = ns_config_get(maps, "check-srv-cname", &obj);
1536 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1537 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
1540 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
1542 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
1550 obj = NULL;
1551 result = ns_config_get(maps, "dnssec-secure-to-insecure", &obj);
1552 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1554 cfg_obj_asboolean(obj));
1556 obj = NULL;
1557 result = cfg_map_get(zoptions, "dnssec-update-mode", &obj);
1559 const char *arg = cfg_obj_asstring(obj);
1569 obj = NULL;
1570 result = ns_config_get(maps, "serial-update-method", &obj);
1571 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1572 if (strcasecmp(cfg_obj_asstring(obj), "unixtime") == 0)
1575 else if (strcasecmp(cfg_obj_asstring(obj), "date") == 0)
1591 obj = NULL;
1592 (void)cfg_map_get(zoptions, "masters", &obj);
1593 if (obj != NULL) {
1597 RETERR(ns_config_getipandkeylist(config, obj, mctx,
1611 obj = NULL;
1612 result = ns_config_get(maps, "multi-master", &obj);
1613 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1614 multi = cfg_obj_asboolean(obj);
1618 obj = NULL;
1619 result = ns_config_get(maps, "max-transfer-time-in", &obj);
1620 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1621 dns_zone_setmaxxfrin(mayberaw, cfg_obj_asuint32(obj) * 60);
1623 obj = NULL;
1624 result = ns_config_get(maps, "max-transfer-idle-in", &obj);
1625 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1626 dns_zone_setidlein(mayberaw, cfg_obj_asuint32(obj) * 60);
1628 obj = NULL;
1629 result = ns_config_get(maps, "max-refresh-time", &obj);
1630 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1631 dns_zone_setmaxrefreshtime(mayberaw, cfg_obj_asuint32(obj));
1633 obj = NULL;
1634 result = ns_config_get(maps, "min-refresh-time", &obj);
1635 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1636 dns_zone_setminrefreshtime(mayberaw, cfg_obj_asuint32(obj));
1638 obj = NULL;
1639 result = ns_config_get(maps, "max-retry-time", &obj);
1640 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1641 dns_zone_setmaxretrytime(mayberaw, cfg_obj_asuint32(obj));
1643 obj = NULL;
1644 result = ns_config_get(maps, "min-retry-time", &obj);
1645 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1646 dns_zone_setminretrytime(mayberaw, cfg_obj_asuint32(obj));
1648 obj = NULL;
1649 result = ns_config_get(maps, "transfer-source", &obj);
1650 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1652 cfg_obj_assockaddr(obj)));
1653 dscp = cfg_obj_getdscp(obj);
1657 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1659 obj = NULL;
1660 result = ns_config_get(maps, "transfer-source-v6", &obj);
1661 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1663 cfg_obj_assockaddr(obj)));
1664 dscp = cfg_obj_getdscp(obj);
1668 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
1670 obj = NULL;
1671 result = ns_config_get(maps, "alt-transfer-source", &obj);
1672 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1674 cfg_obj_assockaddr(obj)));
1675 dscp = cfg_obj_getdscp(obj);
1680 obj = NULL;
1681 result = ns_config_get(maps, "alt-transfer-source-v6", &obj);
1682 INSIST(result == ISC_R_SUCCESS && obj != NULL);
1684 cfg_obj_assockaddr(obj)));
1685 dscp = cfg_obj_getdscp(obj);
1690 obj = NULL;
1691 (void)ns_config_get(maps, "use-alt-transfer-source", &obj);
1692 if (obj == NULL) {
1703 alt = cfg_obj_asboolean(obj);
1706 obj = NULL;
1707 (void)ns_config_get(maps, "try-tcp-refresh", &obj);
1709 cfg_obj_asboolean(obj));
1750 const cfg_obj_t *obj = NULL;
1782 obj = NULL;
1783 (void)cfg_map_get(zoptions, "inline-signing", &obj);
1784 if ((obj == NULL || !cfg_obj_asboolean(obj)) && has_raw) {
1788 } else if ((obj != NULL && cfg_obj_asboolean(obj)) && !has_raw) {
1800 obj = NULL;
1801 (void)cfg_map_get(zoptions, "file", &obj);
1802 if (obj != NULL)
1803 cfilename = cfg_obj_asstring(obj);