summaryrefslogtreecommitdiff
path: root/other/openssh-2.1.1p4/match.h
diff options
context:
space:
mode:
Diffstat (limited to 'other/openssh-2.1.1p4/match.h')
-rw-r--r--other/openssh-2.1.1p4/match.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/other/openssh-2.1.1p4/match.h b/other/openssh-2.1.1p4/match.h
deleted file mode 100644
index 8eac0a5..0000000
--- a/other/openssh-2.1.1p4/match.h
+++ /dev/null
@@ -1,18 +0,0 @@
1#ifndef MATCH_H
2#define MATCH_H
3
4/*
5 * Returns true if the given string matches the pattern (which may contain ?
6 * and * as wildcards), and zero if it does not match.
7 */
8int match_pattern(const char *s, const char *pattern);
9
10/*
11 * Tries to match the host name (which must be in all lowercase) against the
12 * comma-separated sequence of subpatterns (each possibly preceded by ! to
13 * indicate negation). Returns -1 if negation matches, 1 if there is
14 * a positive match, 0 if there is no match at all.
15 */
16int match_hostname(const char *host, const char *pattern, unsigned int len);
17
18#endif