]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove remaining checks for rbt64
authorTony Finch <fanf@isc.org>
Wed, 6 Apr 2022 10:39:27 +0000 (11:39 +0100)
committerTony Finch <fanf@isc.org>
Mon, 2 May 2022 23:41:42 +0000 (00:41 +0100)
These checks have been redundant since the `rbtdb64` implementation
was removed in 2018 (commit 784087390ae8). It isn't possible to create
a zone that uses `database "rbt64"` now that the `rbt64` database
implementation has been removed, so the checks will always fail.

bin/check/named-checkconf.c
bin/named/server.c
lib/bind9/check.c
lib/dns/rbtdb.h
lib/dns/zone.c

index 204bd1fffc7d5354aa31f9b42c702ab30d1b537e..ceba9adce3c087ae9afd77c0fd64b67506060a76 100644 (file)
@@ -246,9 +246,7 @@ configure_zone(const char *vclass, const char *view, const cfg_obj_t *zconfig,
         * Skip checks when using an alternate data source.
         */
        cfg_map_get(zoptions, "database", &dbobj);
-       if (dbobj != NULL && strcmp("rbt", cfg_obj_asstring(dbobj)) != 0 &&
-           strcmp("rbt64", cfg_obj_asstring(dbobj)) != 0)
-       {
+       if (dbobj != NULL && strcmp("rbt", cfg_obj_asstring(dbobj)) != 0) {
                return (ISC_R_SUCCESS);
        }
 
index e2de4277462369164d9232358e3bc441d01c365f..776e1703849463fc40fbbadf150c328324a08b82 100644 (file)
@@ -1779,10 +1779,6 @@ check_dbtype(dns_zone_t *zone, unsigned int dbtypec, const char **dbargv,
        for (i = 0; i < dbtypec; i++) {
                if (argv[i] == NULL || strcmp(argv[i], dbargv[i]) != 0) {
                        CHECK(ISC_R_FAILURE);
-
-                       /*
-                        * Check that there are not extra arguments.
-                        */
                }
        }
 
index 8a2b645c79e91ab661d2cc406373b7e361d102c9..658daec76de76fcea584aa866c468d29c738a537 100644 (file)
@@ -3738,7 +3738,7 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
        }
 
        /*
-        * If the zone type is rbt/rbt64 then primary/hint zones require file
+        * If the zone type is rbt then primary/hint zones require file
         * clauses. If inline-signing is used, then secondary zones require a
         * file clause as well.
         */
@@ -3759,8 +3759,7 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
                result = ISC_R_FAILURE;
        } else if (!dlz && (tresult == ISC_R_NOTFOUND ||
                            (tresult == ISC_R_SUCCESS &&
-                            (strcmp("rbt", cfg_obj_asstring(obj)) == 0 ||
-                             strcmp("rbt64", cfg_obj_asstring(obj)) == 0))))
+                            strcmp("rbt", cfg_obj_asstring(obj)) == 0)))
        {
                isc_result_t res1;
                const cfg_obj_t *fileobj = NULL;
index 44e51023abad4f94f0badf2a8b440c85fdd4f831..8edee5b3ebb4ebb869ae2424a5ee368261c0d0e8 100644 (file)
@@ -34,8 +34,8 @@ dns_rbtdb_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
                 void *driverarg, dns_db_t **dbp);
 
 /*%<
- * Create a new database of type "rbt" (or "rbt64").  Called via
- * dns_db_create(); see documentation for that function for more details.
+ * Create a new database of type "rbt". Called via dns_db_create();
+ * see documentation for that function for more details.
  *
  * If argv[0] is set, it points to a valid memory context to be used for
  * allocation of heap memory.  Generally this is used for cache databases
index 794154d8b5364ff2243d4563b192f4389d927721..2c011c0241a1faf78d2920b661965457f710888b 100644 (file)
@@ -1924,9 +1924,7 @@ dns_zone_rpz_enable(dns_zone_t *zone, dns_rpz_zones_t *rpzs,
         * Only zones that are loaded instead of mmap()ed create the
         * summary data and so can be policy zones.
         */
-       if (strcmp(zone->db_argv[0], "rbt") != 0 &&
-           strcmp(zone->db_argv[0], "rbt64") != 0)
-       {
+       if (strcmp(zone->db_argv[0], "rbt") != 0) {
                return (ISC_R_NOTIMPLEMENTED);
        }
 
@@ -2163,8 +2161,7 @@ zone_load(dns_zone_t *zone, unsigned int flags, bool locked) {
 
        INSIST(zone->db_argc >= 1);
 
-       rbt = strcmp(zone->db_argv[0], "rbt") == 0 ||
-             strcmp(zone->db_argv[0], "rbt64") == 0;
+       rbt = strcmp(zone->db_argv[0], "rbt") == 0;
 
        if (zone->db != NULL && zone->masterfile == NULL && rbt) {
                /*