1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-07 08:02:56 +03:00

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.
This commit is contained in:
Daniel Stenberg
2009-05-29 23:04:52 +02:00
parent e52a1057fd
commit bc4c258842
2 changed files with 8 additions and 0 deletions

View File

@@ -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 */