From: Marcel Röthke Date: Mon, 13 Nov 2017 14:50:50 +0000 (+0100) Subject: bgpd: fix build against rtrlib versions without ssh support X-Git-Tag: frr-4.0-dev~156^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=acd4a9f4102d54039357a98377db8feb7d56413f;p=mirror%2Ffrr.git bgpd: fix build against rtrlib versions without ssh support Signed-off-by: Marcel Röthke --- 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: