diff --git a/.github/workflows/sshd-test.yml b/.github/workflows/sshd-test.yml index 3fbe3daf..eb075a6f 100644 --- a/.github/workflows/sshd-test.yml +++ b/.github/workflows/sshd-test.yml @@ -66,7 +66,7 @@ jobs: wolfssl: ${{ fromJson(needs.create_matrix.outputs['versions']) }} name: Build and test wolfsshd runs-on: ${{ matrix.os }} - timeout-minutes: 10 + timeout-minutes: 15 steps: - name: Checking cache for wolfssl uses: actions/cache@v4 diff --git a/src/internal.c b/src/internal.c index b8e88d11..13d29853 100644 --- a/src/internal.c +++ b/src/internal.c @@ -696,6 +696,8 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg) #endif /* NO_WOLFSSH_CLIENT */ +/* 'state' argument is for if trying to send a message or receive one. + * Returns 1 if allowed 0 if not allowed. */ INLINE static int IsMessageAllowed(WOLFSSH *ssh, byte msg, byte state) { if (state == WS_MSG_SEND && !IsMessageAllowedKeying(ssh, msg)) { diff --git a/wolfssh/internal.h b/wolfssh/internal.h index cb4a357c..2fbb66fc 100644 --- a/wolfssh/internal.h +++ b/wolfssh/internal.h @@ -1205,7 +1205,7 @@ enum WS_MessageIds { #define CHANNEL_EXTENDED_DATA_STDERR WOLFSSH_EXT_DATA_STDERR -/* Used when checking IsMessageAllowed() to determine if createing and sending +/* Used when checking IsMessageAllowed() to determine if creating and sending * the message or receiving the message is allowed */ #define WS_MSG_SEND 1 #define WS_MSG_RECV 2