From acd4a9f4102d54039357a98377db8feb7d56413f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcel=20R=C3=B6thke?= Date: Mon, 13 Nov 2017 15:50:50 +0100 Subject: [PATCH] bgpd: fix build against rtrlib versions without ssh support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Röthke --- bgpd/bgp_rpki.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index a3971f8eec..cf830bb133 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -255,9 +255,11 @@ static struct rtr_mgr_group *get_groups(void) if (cache->type == TCP) tr_tcp_init(cache->tr_config.tcp_config, cache->tr_socket); +#if defined(FOUND_SSH) else tr_ssh_init(cache->tr_config.ssh_config, cache->tr_socket); +#endif i++; } @@ -635,7 +637,9 @@ static int config_write(struct vty *vty) for (ALL_LIST_ELEMENTS_RO(cache_list, cache_node, cache)) { switch (cache->type) { struct tr_tcp_config *tcp_config; +#if defined(FOUND_SSH) struct tr_ssh_config *ssh_config; +#endif case TCP: tcp_config = cache->tr_config.tcp_config; vty_out(vty, @@ -971,7 +975,9 @@ DEFUN (show_rpki_cache_connection, cache)) { if (cache->preference == group->preference) { struct tr_tcp_config *tcp_config; +#if defined(FOUND_SSH) struct tr_ssh_config *ssh_config; +#endif switch (cache->type) { case TCP: -- 2.39.5