diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-04-18 13:23:02 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-04-18 13:23:10 +0200 |
commit | df0cc41e1deb441b28ff77fc5b6ee9c807bd3922 (patch) | |
tree | d6e728f9ca7e98a1eeb3107557669ce7d1bc9704 /src/server_ssh.c | |
parent | 4a3a64e344856c730711e87215ac56d77a80a956 (diff) |
POTD skeleton #15.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/server_ssh.c')
-rw-r--r-- | src/server_ssh.c | 11 |
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()) |