Skip to content

Add warning to make non-registered channelOpenCb visible#954

Merged
ejohnstown merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_2476
Apr 24, 2026
Merged

Add warning to make non-registered channelOpenCb visible#954
ejohnstown merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_2476

Conversation

@yosuke-wolfssl
Copy link
Copy Markdown
Contributor

This PR adds the waring log for non-registered channelOpenCb usage.
This doesn't break current program flow but make users aware of it.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Apr 24, 2026
Copilot AI review requested due to automatic review settings April 24, 2026 06:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a warning log in the channel-open handling path to make it visible when a channelOpenCb callback has not been registered, while preserving the existing behavior of accepting channel opens by default.

Changes:

  • Emit a WS_LOG_WARN message when ssh->ctx->channelOpenCb is not set during DoChannelOpen().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/internal.c Outdated
@ejohnstown ejohnstown merged commit 7241f4e into wolfSSL:master Apr 24, 2026
131 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants