Lines Matching defs:obj

336 	const cfg_obj_t *obj = NULL;
339 result = cfg_map_get(map, "type", &obj);
340 INSIST(result == ISC_R_SUCCESS && obj != NULL);
341 return (ns_config_getzonetype(obj));
419 const cfg_obj_t *obj;
479 obj = NULL;
480 result = cfg_map_get(zoptions, "database", &obj);
482 cpval = isc_mem_strdup(mctx, cfg_obj_asstring(obj));
507 obj = NULL;
508 result = cfg_map_get(zoptions, "file", &obj);
510 filename = cfg_obj_asstring(obj);
513 obj = NULL;
514 result= ns_config_get(maps, "masterfile-format", &obj);
516 const char *masterformatstr = cfg_obj_asstring(obj);
527 obj = NULL;
528 result = cfg_map_get(zoptions, "journal", &obj);
530 RETERR(dns_zone_setjournal(zone, cfg_obj_asstring(obj)));
550 obj = NULL;
551 result = ns_config_get(maps, "dialup", &obj);
552 INSIST(result == ISC_R_SUCCESS && obj != NULL);
553 if (cfg_obj_isboolean(obj)) {
554 if (cfg_obj_asboolean(obj))
559 const char *dialupstr = cfg_obj_asstring(obj);
573 obj = NULL;
574 result = ns_config_get(maps, "zone-statistics", &obj);
575 INSIST(result == ISC_R_SUCCESS && obj != NULL);
576 zonestats_on = cfg_obj_asboolean(obj);
592 obj = NULL;
593 result = ns_config_get(maps, "notify", &obj);
594 INSIST(result == ISC_R_SUCCESS && obj != NULL);
595 if (cfg_obj_isboolean(obj)) {
596 if (cfg_obj_asboolean(obj))
601 const char *notifystr = cfg_obj_asstring(obj);
611 obj = NULL;
612 result = ns_config_get(maps, "also-notify", &obj);
616 result = ns_config_getiplist(config, obj, 0, mctx,
628 obj = NULL;
629 result = ns_config_get(maps, "notify-source", &obj);
630 INSIST(result == ISC_R_SUCCESS && obj != NULL);
631 RETERR(dns_zone_setnotifysrc4(zone, cfg_obj_assockaddr(obj)));
632 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
634 obj = NULL;
635 result = ns_config_get(maps, "notify-source-v6", &obj);
636 INSIST(result == ISC_R_SUCCESS && obj != NULL);
637 RETERR(dns_zone_setnotifysrc6(zone, cfg_obj_assockaddr(obj)));
638 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
640 obj = NULL;
641 result = ns_config_get(maps, "notify-to-soa", &obj);
642 INSIST(result == ISC_R_SUCCESS && obj != NULL);
644 cfg_obj_asboolean(obj));
653 obj = NULL;
654 result = ns_config_get(maps, "max-transfer-time-out", &obj);
655 INSIST(result == ISC_R_SUCCESS && obj != NULL);
656 dns_zone_setmaxxfrout(zone, cfg_obj_asuint32(obj) * 60);
658 obj = NULL;
659 result = ns_config_get(maps, "max-transfer-idle-out", &obj);
660 INSIST(result == ISC_R_SUCCESS && obj != NULL);
661 dns_zone_setidleout(zone, cfg_obj_asuint32(obj) * 60);
663 obj = NULL;
664 result = ns_config_get(maps, "max-journal-size", &obj);
665 INSIST(result == ISC_R_SUCCESS && obj != NULL);
667 if (cfg_obj_isstring(obj)) {
668 const char *str = cfg_obj_asstring(obj);
673 value = cfg_obj_asuint64(obj);
675 cfg_obj_log(obj, ns_g_lctx,
687 obj = NULL;
688 result = ns_config_get(maps, "ixfr-from-differences", &obj);
689 INSIST(result == ISC_R_SUCCESS && obj != NULL);
690 if (cfg_obj_isboolean(obj))
691 ixfrdiff = cfg_obj_asboolean(obj);
692 else if (!strcasecmp(cfg_obj_asstring(obj), "master") &&
695 else if (!strcasecmp(cfg_obj_asstring(obj), "slave") &&
702 checknames(ztype, maps, &obj);
703 INSIST(obj != NULL);
704 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
707 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
709 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
716 obj = NULL;
717 result = ns_config_get(maps, "notify-delay", &obj);
718 INSIST(result == ISC_R_SUCCESS && obj != NULL);
719 dns_zone_setnotifydelay(zone, cfg_obj_asuint32(obj));
721 obj = NULL;
722 result = ns_config_get(maps, "check-sibling", &obj);
723 INSIST(result == ISC_R_SUCCESS && obj != NULL);
725 cfg_obj_asboolean(obj));
727 obj = NULL;
728 result = ns_config_get(maps, "check-spf", &obj);
729 INSIST(result == ISC_R_SUCCESS && obj != NULL);
730 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
732 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
738 obj = NULL;
739 result = ns_config_get(maps, "zero-no-soa-ttl", &obj);
740 INSIST(result == ISC_R_SUCCESS && obj != NULL);
741 dns_zone_setzeronosoattl(zone, cfg_obj_asboolean(obj));
743 obj = NULL;
744 result = ns_config_get(maps, "nsec3-test-zone", &obj);
745 INSIST(result == ISC_R_SUCCESS && obj != NULL);
747 cfg_obj_asboolean(obj));
771 obj = NULL;
772 result = ns_config_get(maps, "sig-validity-interval", &obj);
773 INSIST(result == ISC_R_SUCCESS && obj != NULL);
777 validity = cfg_tuple_get(obj, "validity");
781 resign = cfg_tuple_get(obj, "re-sign");
795 obj = NULL;
796 result = ns_config_get(maps, "key-directory", &obj);
798 filename = cfg_obj_asstring(obj);
800 cfg_obj_log(obj, ns_g_lctx, ISC_LOG_ERROR,
808 obj = NULL;
809 result = ns_config_get(maps, "sig-signing-signatures", &obj);
810 INSIST(result == ISC_R_SUCCESS && obj != NULL);
811 dns_zone_setsignatures(zone, cfg_obj_asuint32(obj));
813 obj = NULL;
814 result = ns_config_get(maps, "sig-signing-nodes", &obj);
815 INSIST(result == ISC_R_SUCCESS && obj != NULL);
816 dns_zone_setnodes(zone, cfg_obj_asuint32(obj));
818 obj = NULL;
819 result = ns_config_get(maps, "sig-signing-type", &obj);
820 INSIST(result == ISC_R_SUCCESS && obj != NULL);
821 dns_zone_setprivatetype(zone, cfg_obj_asuint32(obj));
823 obj = NULL;
824 result = ns_config_get(maps, "update-check-ksk", &obj);
825 INSIST(result == ISC_R_SUCCESS && obj != NULL);
827 cfg_obj_asboolean(obj));
841 obj = NULL;
842 result = ns_config_get(maps, "check-wildcard", &obj);
844 check = cfg_obj_asboolean(obj);
849 obj = NULL;
850 result = ns_config_get(maps, "check-mx", &obj);
851 INSIST(result == ISC_R_SUCCESS && obj != NULL);
852 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
855 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
857 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
864 obj = NULL;
865 result = ns_config_get(maps, "check-integrity", &obj);
866 INSIST(result == ISC_R_SUCCESS && obj != NULL);
868 cfg_obj_asboolean(obj));
870 obj = NULL;
871 result = ns_config_get(maps, "check-mx-cname", &obj);
872 INSIST(result == ISC_R_SUCCESS && obj != NULL);
873 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
876 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
878 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
885 obj = NULL;
886 result = ns_config_get(maps, "check-srv-cname", &obj);
887 INSIST(result == ISC_R_SUCCESS && obj != NULL);
888 if (strcasecmp(cfg_obj_asstring(obj), "warn") == 0) {
891 } else if (strcasecmp(cfg_obj_asstring(obj), "fail") == 0) {
893 } else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
908 obj = NULL;
909 (void)cfg_map_get(zoptions, "masters", &obj);
910 if (obj != NULL) {
913 RETERR(ns_config_getipandkeylist(config, obj, mctx,
929 obj = NULL;
930 result = ns_config_get(maps, "multi-master", &obj);
931 INSIST(result == ISC_R_SUCCESS && obj != NULL);
932 multi = cfg_obj_asboolean(obj);
936 obj = NULL;
937 result = ns_config_get(maps, "max-transfer-time-in", &obj);
938 INSIST(result == ISC_R_SUCCESS && obj != NULL);
939 dns_zone_setmaxxfrin(zone, cfg_obj_asuint32(obj) * 60);
941 obj = NULL;
942 result = ns_config_get(maps, "max-transfer-idle-in", &obj);
943 INSIST(result == ISC_R_SUCCESS && obj != NULL);
944 dns_zone_setidlein(zone, cfg_obj_asuint32(obj) * 60);
946 obj = NULL;
947 result = ns_config_get(maps, "max-refresh-time", &obj);
948 INSIST(result == ISC_R_SUCCESS && obj != NULL);
949 dns_zone_setmaxrefreshtime(zone, cfg_obj_asuint32(obj));
951 obj = NULL;
952 result = ns_config_get(maps, "min-refresh-time", &obj);
953 INSIST(result == ISC_R_SUCCESS && obj != NULL);
954 dns_zone_setminrefreshtime(zone, cfg_obj_asuint32(obj));
956 obj = NULL;
957 result = ns_config_get(maps, "max-retry-time", &obj);
958 INSIST(result == ISC_R_SUCCESS && obj != NULL);
959 dns_zone_setmaxretrytime(zone, cfg_obj_asuint32(obj));
961 obj = NULL;
962 result = ns_config_get(maps, "min-retry-time", &obj);
963 INSIST(result == ISC_R_SUCCESS && obj != NULL);
964 dns_zone_setminretrytime(zone, cfg_obj_asuint32(obj));
966 obj = NULL;
967 result = ns_config_get(maps, "transfer-source", &obj);
968 INSIST(result == ISC_R_SUCCESS && obj != NULL);
969 RETERR(dns_zone_setxfrsource4(zone, cfg_obj_assockaddr(obj)));
970 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
972 obj = NULL;
973 result = ns_config_get(maps, "transfer-source-v6", &obj);
974 INSIST(result == ISC_R_SUCCESS && obj != NULL);
975 RETERR(dns_zone_setxfrsource6(zone, cfg_obj_assockaddr(obj)));
976 ns_add_reserved_dispatch(ns_g_server, cfg_obj_assockaddr(obj));
978 obj = NULL;
979 result = ns_config_get(maps, "alt-transfer-source", &obj);
980 INSIST(result == ISC_R_SUCCESS && obj != NULL);
981 RETERR(dns_zone_setaltxfrsource4(zone, cfg_obj_assockaddr(obj)));
983 obj = NULL;
984 result = ns_config_get(maps, "alt-transfer-source-v6", &obj);
985 INSIST(result == ISC_R_SUCCESS && obj != NULL);
986 RETERR(dns_zone_setaltxfrsource6(zone, cfg_obj_assockaddr(obj)));
988 obj = NULL;
989 (void)ns_config_get(maps, "use-alt-transfer-source", &obj);
990 if (obj == NULL) {
1001 alt = cfg_obj_asboolean(obj);
1004 obj = NULL;
1005 (void)ns_config_get(maps, "try-tcp-refresh", &obj);
1007 cfg_obj_asboolean(obj));
1020 const cfg_obj_t *obj = NULL;
1032 obj = NULL;
1033 (void)cfg_map_get(zoptions, "file", &obj);
1034 if (obj != NULL)
1035 cfilename = cfg_obj_asstring(obj);