diff options
author | Mavridis Philippe <[email protected]> | 2022-07-03 11:26:01 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2022-07-15 13:21:19 +0300 |
commit | 90ea879f2be848f48846cf769cf3f1e03c4b9128 (patch) | |
tree | 6f5aba4bee1a3072ed5aa73bc59ae9f5080af3be /tdeioslave/sftp/tdeio_sftp.h | |
parent | b7c36c8ea3660ffbb24c1b52dcdca797efe8802b (diff) | |
download | tdebase-90ea879f2be848f48846cf769cf3f1e03c4b9128.tar.gz tdebase-90ea879f2be848f48846cf769cf3f1e03c4b9128.zip |
SFTP: compatibility with older libssh versions
Signed-off-by: Mavridis Philippe <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit d6db1a583cc495ae318872e298f200ee1da673d9)
Diffstat (limited to 'tdeioslave/sftp/tdeio_sftp.h')
-rw-r--r-- | tdeioslave/sftp/tdeio_sftp.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tdeioslave/sftp/tdeio_sftp.h b/tdeioslave/sftp/tdeio_sftp.h index 82bbc7a43..8e46d815c 100644 --- a/tdeioslave/sftp/tdeio_sftp.h +++ b/tdeioslave/sftp/tdeio_sftp.h @@ -41,6 +41,24 @@ #define MAX_XFER_BUF_SIZE 60 * 1024 #define TDEIO_SFTP_DB 7120 + +#if LIBSSH_VERSION_INT < SSH_VERSION_INT(0, 7, 90) +#define TDEIO_SSH_KNOWN_HOSTS_OK SSH_SERVER_KNOWN_OK +#define TDEIO_SSH_KNOWN_HOSTS_OTHER SSH_SERVER_FOUND_OTHER +#define TDEIO_SSH_KNOWN_HOSTS_CHANGED SSH_SERVER_KNOWN_CHANGED +#define TDEIO_SSH_KNOWN_HOSTS_NOT_FOUND SSH_SERVER_FILE_NOT_FOUND +#define TDEIO_SSH_KNOWN_HOSTS_UNKNOWN SSH_SERVER_NOT_KNOWN +#define TDEIO_SSH_KNOWN_HOSTS_ERROR SSH_SERVER_ERROR + +#else +#define TDEIO_SSH_KNOWN_HOSTS_OK SSH_KNOWN_HOSTS_OK +#define TDEIO_SSH_KNOWN_HOSTS_OTHER SSH_KNOWN_HOSTS_OTHER +#define TDEIO_SSH_KNOWN_HOSTS_CHANGED SSH_KNOWN_HOSTS_CHANGED +#define TDEIO_SSH_KNOWN_HOSTS_NOT_FOUND SSH_KNOWN_HOSTS_NOT_FOUND +#define TDEIO_SSH_KNOWN_HOSTS_UNKNOWN SSH_KNOWN_HOSTS_UNKNOWN +#define TDEIO_SSH_KNOWN_HOSTS_ERROR SSH_KNOWN_HOSTS_ERROR +#endif + namespace TDEIO { class AuthInfo; } |