summaryrefslogtreecommitdiff
path: root/lib/socket.h
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-12-07 14:15:35 +0100
committerJan Moskyto Matejka <mq@ucw.cz>2016-12-07 14:15:35 +0100
commitaf62c0f9f1f6382fe88c8ae5e514f70c0b5b6d05 (patch)
tree49c82267598c92cc758203f8ed06d822c6c2deb2 /lib/socket.h
parentcdbe1defa4b783715ed29d8d253a55d3efe0b9ed (diff)
LibSSH may be switched off together with RPKI
Diffstat (limited to 'lib/socket.h')
-rw-r--r--lib/socket.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/socket.h b/lib/socket.h
index ce06a19c..99bac6f8 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -12,8 +12,12 @@
#include <errno.h>
#include "lib/resource.h"
-#include "lib/libssh.h"
+#ifdef HAVE_LIBSSH
+#define LIBSSH_LEGACY_0_4
+#include <libssh/libssh.h>
+#endif
+#ifdef HAVE_LIBSSH
struct ssh_sock {
const char *username; /* (Required) SSH user name */
const char *server_hostkey_path; /* (Optional) Filepath to the SSH public key of remote side, can be knownhost file */
@@ -30,6 +34,7 @@ struct ssh_sock {
#define SK_SSH_SUBSYSTEM 5 /* Internal */
#define SK_SSH_ESTABLISHED 6 /* Final state */
};
+#endif
typedef struct birdsock {
resource r;