aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server_ssh.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/server_ssh.c b/src/server_ssh.c
index 8c57ac6..8e6a224 100644
--- a/src/server_ssh.c
+++ b/src/server_ssh.c
@@ -8,8 +8,8 @@
#include "log.h"
#if LIBSSH_VERSION_MAJOR != 0 || LIBSSH_VERSION_MINOR < 7 || \
- LIBSSH_VERSION_MICRO < 90
-#pragma message "Unsupported libssh version < 0.7.90"
+ LIBSSH_VERSION_MICRO < 3
+#pragma message "Unsupported libssh version < 0.7.3"
#endif
typedef struct ssh_data {
@@ -32,10 +32,15 @@ static void ssh_log_cb(int priority, const char *function, const char *buffer, v
int ssh_init_cb(struct forward_ctx *ctx)
{
N("libssh version: %s", ssh_version(0));
- if (ssh_version(SSH_VERSION_INT(0,7,90)) == NULL)
+ if (ssh_version(SSH_VERSION_INT(0,7,3)) == NULL)
+ {
+ W("%s", "Unsupported libssh version < 0.7.3");
+ }
+ if (ssh_version(SSH_VERSION_INT(0,7,4)) != NULL ||
+ ssh_version(SSH_VERSION_INT(0,7,90)) != NULL)
{
W("%s",
- "libssh versions before 0.7.90 are not supported and may suffer "
+ "libssh versions > 0.7.3 may suffer "
"from problems with the pki key generation/export");
}
ctx->fwd_cbs = potd_ssh_callbacks;