diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-01-23 22:52:53 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-01-24 13:55:05 +0100 |
commit | a63dbc07f3178fc6795c67ba864c97aabd192393 (patch) | |
tree | a25b4dd3f20fe6475820df14e375cd7f9ab6dd2c /examples/knownhosts.c | |
parent | 6a3cd6c20f90d3c50799e9452fd6b1350906276d (diff) | |
download | libssh-a63dbc07f3178fc6795c67ba864c97aabd192393.tar.gz libssh-a63dbc07f3178fc6795c67ba864c97aabd192393.tar.xz libssh-a63dbc07f3178fc6795c67ba864c97aabd192393.zip |
examples: Fixed knownhosts on Windows.
Diffstat (limited to 'examples/knownhosts.c')
-rw-r--r-- | examples/knownhosts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/knownhosts.c b/examples/knownhosts.c index 53d7562..2797c3f 100644 --- a/examples/knownhosts.c +++ b/examples/knownhosts.c @@ -25,6 +25,10 @@ clients must be made or how a client should react. #include <libssh/libssh.h> #include "examples_common.h" +#ifdef _WIN32 +#define strncasecmp _strnicmp +#endif + int verify_knownhost(ssh_session session){ char *hexa; int state; |