aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-01-23 22:52:53 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-01-24 13:55:05 +0100
commita63dbc07f3178fc6795c67ba864c97aabd192393 (patch)
treea25b4dd3f20fe6475820df14e375cd7f9ab6dd2c /examples
parent6a3cd6c20f90d3c50799e9452fd6b1350906276d (diff)
downloadlibssh-a63dbc07f3178fc6795c67ba864c97aabd192393.tar.gz
libssh-a63dbc07f3178fc6795c67ba864c97aabd192393.tar.xz
libssh-a63dbc07f3178fc6795c67ba864c97aabd192393.zip
examples: Fixed knownhosts on Windows.
Diffstat (limited to 'examples')
-rw-r--r--examples/knownhosts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/knownhosts.c b/examples/knownhosts.c
index 53d75627..2797c3f2 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;