forked from wolfSSL/wolfssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wolfSSL#720 from ejohnstown/sshd-banner
SSHD Banners
- Loading branch information
Showing
3 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -658,19 +658,6 @@ INLINE static int IsMessageAllowed(WOLFSSH *ssh, byte msg) | |
} | ||
|
||
|
||
#ifdef DEBUG_WOLFSSH | ||
|
||
static const char cannedBanner[] = | ||
"CANNED BANNER\r\n" | ||
"This server is an example test server. " | ||
"It should have its own banner, but\r\n" | ||
"it is currently using a canned one in " | ||
"the library. Be happy or not.\r\n"; | ||
static const word32 cannedBannerSz = (word32)sizeof(cannedBanner) - 1; | ||
|
||
#endif /* DEBUG_WOLFSSH */ | ||
|
||
|
||
static const char cannedKexAlgoNames[] = | ||
#if !defined(WOLFSSH_NO_ECDH_NISTP256_KYBER_LEVEL1_SHA256) | ||
"[email protected]," | ||
|
@@ -823,10 +810,8 @@ WOLFSSH_CTX* CtxInit(WOLFSSH_CTX* ctx, byte side, void* heap) | |
ctx->scpRecvCb = wsScpRecvCallback; | ||
ctx->scpSendCb = wsScpSendCallback; | ||
#endif /* WOLFSSH_SCP */ | ||
#ifdef DEBUG_WOLFSSH | ||
ctx->banner = cannedBanner; | ||
ctx->bannerSz = cannedBannerSz; | ||
#endif /* DEBUG_WOLFSSH */ | ||
ctx->banner = NULL; | ||
ctx->bannerSz = 0; | ||
#ifdef WOLFSSH_CERTS | ||
ctx->certMan = wolfSSH_CERTMAN_new(ctx->heap); | ||
if (ctx->certMan == NULL) | ||
|