aboutsummaryrefslogtreecommitdiff
path: root/src/server_ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server_ssh.c')
-rw-r--r--src/server_ssh.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server_ssh.c b/src/server_ssh.c
index 3c9c2bd..7336544 100644
--- a/src/server_ssh.c
+++ b/src/server_ssh.c
@@ -6,6 +6,11 @@
#include "server_ssh.h"
#include "log.h"
+#if LIBSSH_VERSION_MAJOR != 0 || LIBSSH_VERSION_MINOR < 7 || \
+ LIBSSH_VERSION_MICRO < 90
+#pragma message "Unsupported libssh version < 0.7.90"
+#endif
+
typedef struct ssh_data {
ssh_bind sshbind;
ssh_session session;
@@ -28,6 +33,12 @@ int ssh_init_cb(struct forward_ctx *ctx)
N("libssh version: %d.%d.%d",
LIBSSH_VERSION_MAJOR, LIBSSH_VERSION_MINOR,
LIBSSH_VERSION_MICRO);
+ if (LIBSSH_VERSION_MAJOR != 0 || LIBSSH_VERSION_MINOR < 7 ||
+ LIBSSH_VERSION_MICRO < 90)
+ {
+ W("%s", "libssh versions before 0.7.90 are not supported and may suffer"
+ "from problems with the pki key generation/export");
+ }
ctx->fwd_cbs = potd_ssh_callbacks;
if (ssh_init())