summaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-10 22:59:10 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-10 22:59:10 +1000
commit7a3935de2facb227ea1fc2ce2de046b569a2ebc7 (patch)
treed0545c3c568f1de7f3edd0a3254ab3b5547a6059 /match.h
parent588fe0efa4e7cb74fc071c5271348d13ea06528b (diff)
downloadopenssh-git-7a3935de2facb227ea1fc2ce2de046b569a2ebc7.tar.gz
- (dtucker) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2008/06/10 03:57:27 [servconf.c match.h sshd_config.5] 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 'match.h')
-rw-r--r--match.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/match.h b/match.h
index d1d53865..18f68307 100644
--- a/match.h
+++ b/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