Skip to content

Commit 111e71a

Browse files
increase timeout time on test, fix spelling, add comment on new arg
1 parent 3dd09b9 commit 111e71a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/sshd-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
wolfssl: ${{ fromJson(needs.create_matrix.outputs['versions']) }}
6767
name: Build and test wolfsshd
6868
runs-on: ${{ matrix.os }}
69-
timeout-minutes: 10
69+
timeout-minutes: 15
7070
steps:
7171
- name: Checking cache for wolfssl
7272
uses: actions/cache@v4

src/internal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg)
696696
#endif /* NO_WOLFSSH_CLIENT */
697697

698698

699+
/* 'state' argument is for if trying to send a message or receive one.
700+
* Returns 1 if allowed 0 if not allowed. */
699701
INLINE static int IsMessageAllowed(WOLFSSH *ssh, byte msg, byte state)
700702
{
701703
if (state == WS_MSG_SEND && !IsMessageAllowedKeying(ssh, msg)) {

wolfssh/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ enum WS_MessageIds {
12051205

12061206
#define CHANNEL_EXTENDED_DATA_STDERR WOLFSSH_EXT_DATA_STDERR
12071207

1208-
/* Used when checking IsMessageAllowed() to determine if createing and sending
1208+
/* Used when checking IsMessageAllowed() to determine if creating and sending
12091209
* the message or receiving the message is allowed */
12101210
#define WS_MSG_SEND 1
12111211
#define WS_MSG_RECV 2

0 commit comments

Comments
 (0)