summaryrefslogtreecommitdiff
path: root/proto/rpki/config.Y
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2020-02-04 10:15:35 +0100
committerMaria Matejka <mq@ucw.cz>2020-02-04 10:15:35 +0100
commit027a3e66f786be8863784aefb043097b41090896 (patch)
tree4049bdb280e338384ace7cedac87e5f4963aa486 /proto/rpki/config.Y
parent4bbc10614f3431c37e6352f5a6ea5c693c31021e (diff)
RPKI: Allow build without libSSH
Diffstat (limited to 'proto/rpki/config.Y')
-rw-r--r--proto/rpki/config.Y4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/rpki/config.Y b/proto/rpki/config.Y
index 63c7105c..924066f8 100644
--- a/proto/rpki/config.Y
+++ b/proto/rpki/config.Y
@@ -117,9 +117,13 @@ rpki_transport_tcp_init:
rpki_transport_ssh_init:
{
+#if HAVE_LIBSSH
rpki_check_unused_transport();
RPKI_CFG->tr_config.spec = cfg_allocz(sizeof(struct rpki_tr_ssh_config));
RPKI_CFG->tr_config.type = RPKI_TR_SSH;
+#else
+ cf_error("This build doesn't support SSH");
+#endif
};
rpki_transport_ssh_opts: