summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/match.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-06-10 03:57:28 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-06-10 03:57:28 +0000
commitc918fcb911296db61fe2488385fdbf5e8a132ac4 (patch)
tree55f5f59cf1ca5dc688ea409f3026423868eb02bb /usr.bin/ssh/match.h
parent3251e557452a789c02205b213ceb43ea52433e49 (diff)
support CIDR address matching in sshd_config "Match address" blocks, with
full support for negation and fall-back to classic wildcard matching. For example: Match address 192.0.2.0/24,3ffe:ffff::/32,!10.* PasswordAuthentication yes addrmatch.c code mostly lifted from flowd's addr.c feedback and ok dtucker@
Diffstat (limited to 'usr.bin/ssh/match.h')
-rw-r--r--usr.bin/ssh/match.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/match.h b/usr.bin/ssh/match.h
index d1d53865433..18f6830703b 100644
--- a/usr.bin/ssh/match.h
+++ b/usr.bin/ssh/match.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: match.h,v 1.13 2006/03/25 22:22:43 djm Exp $ */
+/* $OpenBSD: match.h,v 1.14 2008/06/10 03:57:27 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -21,4 +21,7 @@ int match_host_and_ip(const char *, const char *, const char *);
int match_user(const char *, const char *, const char *, const char *);
char *match_list(const char *, const char *, u_int *);
+/* addrmatch.c */
+int addr_match_list(const char *, const char *);
+
#endif