]> andersk Git - openssh.git/blame - match.h
- OpenBSD CVS update
[openssh.git] / match.h
CommitLineData
4fe2af09 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 true if there is a positive match; zero
14 * otherwise.
15 */
16int match_hostname(const char *host, const char *pattern, unsigned int len);
17
18#endif
This page took 0.143537 seconds and 5 git commands to generate.