summaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-26 13:04:51 +1000
committerDamien Miller <djm@mindrot.org>2000-03-26 13:04:51 +1000
commit450a7a1ff40fe7c2d84c93b83cf2df53445d807d (patch)
treedb6d08bdea65edd34ba2e323a31e2b1ca5e5fbd4 /match.h
parent2c9279fa667827384fceb243f890cba1dbe480de (diff)
- OpenBSD CVS update
- [auth-krb4.c] -Wall - [auth-rh-rsa.c auth-rsa.c hostfile.c hostfile.h key.c key.h match.c] [match.h ssh.c ssh.h sshconnect.c sshd.c] initial support for DSA keys. ok deraadt@, niels@ - [cipher.c cipher.h] remove unused cipher_attack_detected code - [scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8] Fix some formatting problems I missed before. - [ssh.1 sshd.8] fix spelling errors, From: FreeBSD - [ssh.c] switch to raw mode only if he _get_ a pty (not if we _want_ a pty).
Diffstat (limited to 'match.h')
-rw-r--r--match.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/match.h b/match.h
new file mode 100644
index 000000000..4625d9769
--- /dev/null
+++ b/match.h
@@ -0,0 +1,18 @@
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