summaryrefslogtreecommitdiffstats
path: root/srclimit.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2024-09-15 03:11:26 +0200
committerDamien Miller <djm@mindrot.org>2024-09-15 03:23:10 +0200
commit7875975136f275619427604900cb0ffd7020e845 (patch)
treeec89bf7a4abd7954bd3a49750db8e0523bbd07ca /srclimit.h
parentupstream: Add a sshd_config "RefuseConnection" option (diff)
downloadopenssh-7875975136f275619427604900cb0ffd7020e845.tar.xz
openssh-7875975136f275619427604900cb0ffd7020e845.zip
upstream: Add a "refuseconnection" penalty class to sshd_config
PerSourcePenalties This allows penalising connection sources that have had connections dropped by the RefuseConnection option. ok markus@ OpenBSD-Commit-ID: 3c8443c427470bb3eac1880aa075cb4864463cb6
Diffstat (limited to 'srclimit.h')
-rw-r--r--srclimit.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/srclimit.h b/srclimit.h
index 13164515b..77d951ba6 100644
--- a/srclimit.h
+++ b/srclimit.h
@@ -22,11 +22,12 @@ void srclimit_init(int, int, int, int,
int srclimit_check_allow(int, int);
void srclimit_done(int);
-#define SRCLIMIT_PENALTY_NONE 0
-#define SRCLIMIT_PENALTY_CRASH 1
-#define SRCLIMIT_PENALTY_AUTHFAIL 2
-#define SRCLIMIT_PENALTY_GRACE_EXCEEDED 3
-#define SRCLIMIT_PENALTY_NOAUTH 4
+#define SRCLIMIT_PENALTY_NONE 0
+#define SRCLIMIT_PENALTY_CRASH 1
+#define SRCLIMIT_PENALTY_AUTHFAIL 2
+#define SRCLIMIT_PENALTY_GRACE_EXCEEDED 3
+#define SRCLIMIT_PENALTY_NOAUTH 4
+#define SRCLIMIT_PENALTY_REFUSECONNECTION 5
/* meaningful exit values, used by sshd listener for penalties */
#define EXIT_LOGIN_GRACE 3 /* login grace period exceeded */