diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-04-17 03:30:05 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-04-17 14:03:36 +1000 |
commit | c90f72d29e84b4a2709078bf5546a72c29a65177 (patch) | |
tree | 58f38f99566d13f7e142c3181878f54e4cd2af21 /servconf.h | |
parent | 321c7147079270f3a154f91b59e66219aac3d514 (diff) |
upstream: make IgnoreRhosts a tri-state option: "yes" ignore
rhosts/shosts, "no" allow rhosts/shosts or (new) "shosts-only" to allow
.shosts files but not .rhosts. ok dtucker@
OpenBSD-Commit-ID: d08d6930ed06377a80cf53923c1955e9589342e9
Diffstat (limited to 'servconf.h')
-rw-r--r-- | servconf.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/servconf.h b/servconf.h index 4202a2d02..a420f398d 100644 --- a/servconf.h +++ b/servconf.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: servconf.h,v 1.143 2020/01/31 22:42:45 djm Exp $ */ | 1 | /* $OpenBSD: servconf.h,v 1.144 2020/04/17 03:30:05 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -38,6 +38,11 @@ | |||
38 | #define PERMITOPEN_ANY 0 | 38 | #define PERMITOPEN_ANY 0 |
39 | #define PERMITOPEN_NONE -2 | 39 | #define PERMITOPEN_NONE -2 |
40 | 40 | ||
41 | /* IgnoreRhosts */ | ||
42 | #define IGNORE_RHOSTS_NO 0 | ||
43 | #define IGNORE_RHOSTS_YES 1 | ||
44 | #define IGNORE_RHOSTS_SHOSTS 2 | ||
45 | |||
41 | #define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */ | 46 | #define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */ |
42 | #define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */ | 47 | #define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */ |
43 | 48 | ||