From bc4c258842c2085e7f084c84411287d1f4e884a4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 29 May 2009 23:04:52 +0200 Subject: [PATCH] define the HAVE_LIBSSH2_KNOWNHOST_API to the version number 1.1.1 to make apps know that when this define exists, the API exists. And the version number can be used for run-time checks. 1.1.1 is not likely to be the release version as I think we'll go with 1.2 instead but 1.1.1 OR LATER should still work. --- NEWS | 7 +++++++ include/libssh2.h | 1 + 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index a27d00f..b3dc95b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,10 @@ +* (May 29 2009) Daniel Stenberg: + + - Updated the knownhost API and there are now 9 functions, and all of them + have man pages. The libssh2.h now defines HAVE_LIBSSH2_KNOWNHOST_API to + ease things for applications to check for the correct release before trying + to use it. + * (May 23 2009) Daniel Stenberg: - Anonymous bug report #2795816 revealed that doing subsequent diff --git a/include/libssh2.h b/include/libssh2.h index 9832568..169f704 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -669,6 +669,7 @@ LIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest, LIBSSH2_API const char *libssh2_version(int req_version_num); +#define HAVE_LIBSSH2_KNOWNHOST_API 0x010101 /* since 1.1.1 */ struct libssh2_knownhost { unsigned int magic; /* magic stored by the library */