From 62cd3fd50cdf019b3ca085cfcbe8d8432e2628ba Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Tue, 7 Nov 2023 13:23:47 -0300 Subject: [PATCH] input: remove tls options from base options listing in help output. Signed-off-by: Phillip Whelan --- src/flb_help.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/flb_help.c b/src/flb_help.c index 9b7b14e193f..86b016035d3 100644 --- a/src/flb_help.c +++ b/src/flb_help.c @@ -198,7 +198,6 @@ int flb_help_input(struct flb_input_instance *ins, void **out_buf, size_t *out_s msgpack_sbuffer mp_sbuf; msgpack_packer mp_pck; int options_size = 0; - struct mk_list *tls_config; struct flb_config_map m_input_net_listen = { .type = FLB_CONFIG_MAP_STR, .name = "host", @@ -245,10 +244,6 @@ int flb_help_input(struct flb_input_instance *ins, void **out_buf, size_t *out_s if ((ins->flags & (FLB_INPUT_NET | FLB_INPUT_NET_SERVER)) != 0) { options_size += 2; } - if (ins->flags & FLB_IO_OPT_TLS) { - tls_config = flb_tls_get_config_map(ins->config); - options_size += mk_list_size(tls_config); - } msgpack_pack_array(&mp_pck, options_size); @@ -256,13 +251,6 @@ int flb_help_input(struct flb_input_instance *ins, void **out_buf, size_t *out_s pack_config_map_entry(&mp_pck, &m_input_net_listen); pack_config_map_entry(&mp_pck, &m_input_net_port); } - if (ins->flags & FLB_IO_OPT_TLS) { - mk_list_foreach(head, tls_config) { - m = mk_list_entry(head, struct flb_config_map, _head); - pack_config_map_entry(&mp_pck, m); - } - flb_config_map_destroy(tls_config); - } mk_list_foreach(head, config_map) { m = mk_list_entry(head, struct flb_config_map, _head);