diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-03-28 23:43:17 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-03-28 23:43:17 +0000 |
commit | 3090d104cf050028dbe2b29788ace057d8eca321 (patch) | |
tree | b323c5d8f9fe95a392133234981abce3a485b64c /libssh/match.c | |
parent | 75d5bb457f604da62a5b821ea0abfa61d38ee156 (diff) | |
download | libssh-3090d104cf050028dbe2b29788ace057d8eca321.tar.gz libssh-3090d104cf050028dbe2b29788ace057d8eca321.tar.xz libssh-3090d104cf050028dbe2b29788ace057d8eca321.zip |
Working new known_host algorithm
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@302 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/match.c')
-rw-r--r-- | libssh/match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/match.c b/libssh/match.c index f3488a0..67f65e8 100644 --- a/libssh/match.c +++ b/libssh/match.c @@ -37,7 +37,7 @@ #include <sys/types.h> #include <ctype.h> #include <string.h> - +#include "libssh/priv.h" /* * Returns true if the given string matches the pattern (which may contain ? * and * as wildcards), and zero if it does not match. @@ -164,6 +164,6 @@ static int match_pattern_list(const char *string, const char *pattern, * indicate negation). Returns -1 if negation matches, 1 if there is * a positive match, 0 if there is no match at all. */ -static int match_hostname(const char *host, const char *pattern, unsigned int len) { +int match_hostname(const char *host, const char *pattern, unsigned int len) { return match_pattern_list(host, pattern, len, 1); } |