]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r305065: Add refactored blacklist support to sshd
authorlidl <lidl@FreeBSD.org>
Tue, 6 Sep 2016 14:52:14 +0000 (14:52 +0000)
committerlidl <lidl@FreeBSD.org>
Tue, 6 Sep 2016 14:52:14 +0000 (14:52 +0000)
commit3b9c774076145fbda20cc62b99547f3deb4f52d3
tree3aab3829188eccde1796fccf737fbcc22a82ab6b
parente16037a886066569c7c5ecb3c5ff0d9b7243b651
MFC r305065: Add refactored blacklist support to sshd

Change the calls to of blacklist_init() and blacklist_notify to be
macros defined in the blacklist_client.h file.  This avoids
the need for #ifdef USE_BLACKLIST / #endif except in the
blacklist.c file.

Remove redundent initialization attempts from within
blacklist_notify - everything always goes through
blacklistd_init().

Added UseBlacklist option to sshd, which defaults to off.
To enable the functionality, use '-o UseBlacklist=yes' on
the command line, or uncomment in the sshd_config file.

Approved by: des
Sponsored by: The FreeBSD Foundation
14 files changed:
crypto/openssh/auth-pam.c
crypto/openssh/auth.c
crypto/openssh/auth1.c
crypto/openssh/auth2.c
crypto/openssh/blacklist.c [new file with mode: 0644]
crypto/openssh/blacklist_client.h [new file with mode: 0644]
crypto/openssh/packet.c
crypto/openssh/servconf.c
crypto/openssh/servconf.h
crypto/openssh/sshd.c
crypto/openssh/sshd_config
crypto/openssh/sshd_config.5
secure/usr.sbin/sshd/Makefile
secure/usr.sbin/sshd/Makefile.depend