From 92966774721fe914403cebbcbc38ceb7e4c01ea3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 16 Jul 2020 02:03:08 -0700 Subject: extcap: assume we're using libssh 0.6 or later. We require 0.6 or later in CMakeLists.txt, and both ssh_version() and LIBSSH_VERSION having to be fed to SSH_STRINGIFY() date back before 0.5, so just assume ssh_version() is available and LIBSSH_VERSION has to be fed to SSH_STRINGIFY(). Change-Id: I4f62a720424383f88e0410cad07dbe67d0c69297 Reviewed-on: https://code.wireshark.org/review/37881 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo Reviewed-by: Guy Harris --- extcap/ssh-base.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'extcap/ssh-base.h') diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h index 6a2f523a01..55565646d9 100644 --- a/extcap/ssh-base.h +++ b/extcap/ssh-base.h @@ -15,25 +15,6 @@ #include -/* - * Sigh. - * - * libssh 1.0 and 2.0 define LIBSSH_VERSION as a string. - * - * libssh 3.0 and later define it as three numbers with periods - * between them, so that you have to do SSH_STRINGIFY(LIBSSH_VERSION) - * to get the SSH version as a string. - * - * Fortunately, "needs SSH_STRINGIFY()" is true iff SSH_STRINGIFY is - * defined, so we can define LIBSSH_VERSION_STRING differently, - * depending on whether SSH_STRINGIFY is defined. - */ -#ifdef SSH_STRINGIFY -#define LIBSSH_VERSION_STRING SSH_STRINGIFY(LIBSSH_VERSION) -#else -#define LIBSSH_VERSION_STRING LIBSSH_VERSION -#endif - #include #ifndef STDERR_FILENO -- cgit v1.2.3