Skip to content

Commit ff95f3c

Browse files
increase timeout time on test, fix spelling, add comment on new arg
1 parent d74c942 commit ff95f3c

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
@@ -707,6 +707,8 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg)
707707
#endif /* NO_WOLFSSH_CLIENT */
708708

709709

710+
/* 'state' argument is for if trying to send a message or receive one.
711+
* Returns 1 if allowed 0 if not allowed. */
710712
INLINE static int IsMessageAllowed(WOLFSSH *ssh, byte msg, byte state)
711713
{
712714
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
@@ -1249,7 +1249,7 @@ enum WS_MessageIds {
12491249

12501250
#define CHANNEL_EXTENDED_DATA_STDERR WOLFSSH_EXT_DATA_STDERR
12511251

1252-
/* Used when checking IsMessageAllowed() to determine if createing and sending
1252+
/* Used when checking IsMessageAllowed() to determine if creating and sending
12531253
* the message or receiving the message is allowed */
12541254
#define WS_MSG_SEND 1
12551255
#define WS_MSG_RECV 2

0 commit comments

Comments
 (0)