]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Delete --init-locations
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 30 Jun 2023 22:06:32 +0000 (16:06 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 30 Jun 2023 22:07:35 +0000 (16:07 -0600)
It was deprecated a long time ago.

src/Makefile.am
src/config.c
src/config/init_tals.c [deleted file]
src/config/init_tals.h [deleted file]

index 120f4385a6005d67906268f622dd643f8aad0253..87ba5883616921a8ad73da2729bdc24e5b9e28e6 100644 (file)
@@ -54,7 +54,6 @@ fort_SOURCES += config/log_conf.h config/log_conf.c
 fort_SOURCES += config/mode.c config/mode.h
 fort_SOURCES += config/incidences.h config/incidences.c
 fort_SOURCES += config/output_format.h config/output_format.c
-fort_SOURCES += config/init_tals.h config/init_tals.c
 fort_SOURCES += config/rsync_strategy.h config/rsync_strategy.c
 fort_SOURCES += config/str.c config/str.h
 fort_SOURCES += config/string_array.h config/string_array.c
index ab103a2dc111cd67eec51bb660ee4416991a65ef..ba3f5c69f2c3004c474250d904328a893ca54837 100644 (file)
@@ -18,7 +18,6 @@
 #include "log.h"
 #include "config/boolean.h"
 #include "config/incidences.h"
-#include "config/init_tals.h"
 #include "config/str.h"
 #include "config/uint.h"
 #include "config/work_offline.h"
@@ -195,9 +194,6 @@ struct rpki_config {
        /* Download AS0 TALs into --tal? */
        bool init_tal0s;
 
-       /* Deprecated; currently does nothing. */
-       unsigned int init_tal_locations;
-
        /* Thread pools for specific tasks */
        struct {
                /* Threads related to RTR server */
@@ -736,13 +732,6 @@ static const struct option_field options[] = {
                .offset = offsetof(struct rpki_config, init_tal0s),
                .doc = "Fetch the currently-known AS0 TAL files into --tal",
                .availability = AVAILABILITY_GETOPT,
-       }, {
-               .id = 11001,
-               .name = "init-locations",
-               .type = &gt_init_tals_locations,
-               .offset = offsetof(struct rpki_config, init_tal_locations),
-               .doc = "Deprecated. Does nothing as of Fort 1.5.1.",
-               .availability = AVAILABILITY_JSON,
        },
 
        {
@@ -978,7 +967,6 @@ set_default_values(void)
 
        rpki_config.asn1_decode_max_stack = 4096; /* 4kB */
        rpki_config.init_tals = false;
-       rpki_config.init_tal_locations = 0;
 
        rpki_config.thread_pool.server.max = 20;
        rpki_config.thread_pool.validation.max = 5;
diff --git a/src/config/init_tals.c b/src/config/init_tals.c
deleted file mode 100644 (file)
index bc34279..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "config/init_tals.h"
-
-static int
-init_tals_parse_json(struct option_field const *opt, json_t *json, void *result)
-{
-       /* This is deprecated. Please delete it in the future. */
-       return 0;
-}
-
-const struct global_type gt_init_tals_locations = {
-       .print = NULL,
-       .parse.json = init_tals_parse_json,
-};
diff --git a/src/config/init_tals.h b/src/config/init_tals.h
deleted file mode 100644 (file)
index a0fbe2e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef SRC_CONFIG_INIT_TALS_H_
-#define SRC_CONFIG_INIT_TALS_H_
-
-#include "config/types.h"
-
-extern const struct global_type gt_init_tals_locations;
-
-#endif /* SRC_CONFIG_INIT_TALS_H_ */