aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/sshd-session.c
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@FreeBSD.org>2025-10-12 17:14:27 +0000
committerJose Luis Duran <jlduran@FreeBSD.org>2025-10-14 00:53:16 +0000
commit7f6f2139eef9f9fc263977c847c6dbf235a1b1b7 (patch)
treee3978404e436786fedd53875596afa99acec5c96 /crypto/openssh/sshd-session.c
parenta719ef67e8ed2cbae5f397d2a4680a02495b79ab (diff)
blocklist: Rename blacklist to blocklist
Follow up upstream rename from blacklist to blocklist. - Old names and rc scripts are still valid, but emitting an ugly warning - Old firewall rules and anchor names should work, but emitting an ugly warning - Old MK_BLACKLIST* knobs are wired to the new ones Although care has been taken not to break current configurations, this is a large patch containing mostly duplicated code. If issues arise, it will be swiftly reverted. Reviewed by: ivy (pkgbase) Approved by: emaste (mentor) MFC after: 2 days Relnotes: yes (cherry picked from commit 7238317403b95a8e35cf0bc7cd66fbd78ecbe521)
Diffstat (limited to 'crypto/openssh/sshd-session.c')
-rw-r--r--crypto/openssh/sshd-session.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/openssh/sshd-session.c b/crypto/openssh/sshd-session.c
index 62c76cc1c8aa..e8299c254567 100644
--- a/crypto/openssh/sshd-session.c
+++ b/crypto/openssh/sshd-session.c
@@ -108,7 +108,7 @@
#include "sk-api.h"
#include "srclimit.h"
#include "dh.h"
-#include "blacklist_client.h"
+#include "blocklist_client.h"
/* Re-exec fds */
#define REEXEC_DEVCRYPTO_RESERVED_FD (STDERR_FILENO + 1)
@@ -217,7 +217,7 @@ mm_is_monitor(void)
static void
grace_alarm_handler(int sig)
{
- BLACKLIST_NOTIFY(the_active_state, BLACKLIST_AUTH_FAIL,
+ BLOCKLIST_NOTIFY(the_active_state, BLOCKLIST_AUTH_FAIL,
"Grace period expired");
/*
* Try to kill any processes that we have spawned, E.g. authorized
@@ -1203,7 +1203,7 @@ main(int ac, char **av)
ssh_signal(SIGCHLD, SIG_DFL);
ssh_signal(SIGINT, SIG_DFL);
- BLACKLIST_INIT();
+ BLOCKLIST_INIT();
/*
* Register our connection. This turns encryption off because we do
@@ -1282,7 +1282,7 @@ main(int ac, char **av)
if ((r = kex_exchange_identification(ssh, -1,
options.version_addendum)) != 0) {
- BLACKLIST_NOTIFY(ssh, BLACKLIST_AUTH_FAIL, "Banner exchange");
+ BLOCKLIST_NOTIFY(ssh, BLOCKLIST_AUTH_FAIL, "Banner exchange");
sshpkt_fatal(ssh, r, "banner exchange");
}
@@ -1430,7 +1430,7 @@ cleanup_exit(int i)
#endif
/* Override default fatal exit value when auth was attempted */
if (i == 255 && auth_attempted) {
- BLACKLIST_NOTIFY(the_active_state, BLACKLIST_AUTH_FAIL,
+ BLOCKLIST_NOTIFY(the_active_state, BLOCKLIST_AUTH_FAIL,
"Fatal exit");
_exit(EXIT_AUTH_ATTEMPTED);
}