-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSHD Banners #720
SSHD Banners #720
Conversation
1. Add getting the banner option from the configuration file. Per the sshd_config(5) manpage, this is supposed to be a filename. 2. Load the banner file and set the banner into the CTX.
{ | ||
if (banner != NULL && *banner != NULL) { | ||
#ifndef NO_FILESYSTEM | ||
freeBufferFromFile(*banner, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the config for the specific user I think. To handle something like this in the future:
Match User sshUser
Banner /path/to/specific_banner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opps sorry, looks like it is setup that way. Just init/free different than I expected. Please double check the XFREE call though after CleanupCTX (with *banner set to NULL here).
No longer requesting changes, only comment to review the free of banner.
SSHD Banners
SSHD Banners
SSHD Banners
SSHD Banners
DESCRIPTION
Add support for loading banner files into wolfSSHd. (ZD 18156)
TESTING
Add "Banner filename.txt" to the sshd_config file used by wolfSSHd.