Skip to content

Conversation

@ejohnstown
Copy link
Contributor

@ejohnstown ejohnstown commented Jan 27, 2026

A large PR had a few small unrelated changes in it. Separated them out into this PR.

  1. Cleanup some whitespace in the Global Request functions.
  2. Add an accessor function to return a channel's type.
  3. In the test suite, make the echoserver test its own function.

1. Break out the echoserver test into its own function, like the SFTP
   tests, called by the testsuite.
2. whitespace
Copy link

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 contains miscellaneous cleanup and enhancements including whitespace formatting improvements, a new channel type accessor function, and test suite refactoring to separate the echo server test into its own function.

Changes:

  • Added wolfSSH_ChannelGetType() accessor function to retrieve a channel's type name
  • Cleaned up whitespace and formatting in global request functions (SendGlobalRequest, SendServiceRequest)
  • Refactored the test suite to extract echo server test logic into a dedicated wolfSSH_EchoTest() function

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
wolfssh/ssh.h Added function declaration for wolfSSH_ChannelGetType()
src/ssh.c Implemented wolfSSH_ChannelGetType() to return channel type name via IdToName()
src/internal.c Fixed log message in SendGlobalRequest() and cleaned up whitespace/formatting
tests/testsuite.c Extracted echo test into separate wolfSSH_EchoTest() function

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

Each channel has a type: session, forward, etc. Add an accessor to
return the channel type for the specified channel.
1. Readjust the whitespace in the Global Request functions.
2. Remove redundant logging statements.
@JacobBarthelmeh JacobBarthelmeh merged commit d32dd2b into wolfSSL:master Jan 28, 2026
194 of 196 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.

3 participants