diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-06-10 22:59:10 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-06-10 22:59:10 +1000 |
commit | 7a3935de2facb227ea1fc2ce2de046b569a2ebc7 (patch) | |
tree | d0545c3c568f1de7f3edd0a3254ab3b5547a6059 /match.h | |
parent | 588fe0efa4e7cb74fc071c5271348d13ea06528b (diff) |
- (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: match.h,v 1.13 2006/03/25 22:22:43 djm Exp $ */ | 1 | /* $OpenBSD: match.h,v 1.14 2008/06/10 03:57:27 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -21,4 +21,7 @@ int match_host_and_ip(const char *, const char *, const char *); | |||
21 | int match_user(const char *, const char *, const char *, const char *); | 21 | int match_user(const char *, const char *, const char *, const char *); |
22 | char *match_list(const char *, const char *, u_int *); | 22 | char *match_list(const char *, const char *, u_int *); |
23 | 23 | ||
24 | /* addrmatch.c */ | ||
25 | int addr_match_list(const char *, const char *); | ||
26 | |||
24 | #endif | 27 | #endif |