Skip to content

Commit 5ae0907

Browse files
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5b30230 commit 5ae0907

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api/test_tls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ int test_dtls_fallback_scsv(void)
11161116
ExpectIntEQ((byte)test_ctx.c_buff[0], 0x15); /* alert content type */
11171117
ExpectIntEQ((byte)test_ctx.c_buff[1], 0xfe); /* DTLS 1.2 */
11181118
ExpectIntEQ((byte)test_ctx.c_buff[2], 0xfd);
1119-
ExpectIntEQ((byte)test_ctx.c_buff[11], 0x00); /* fragment length: 2 */
1119+
ExpectIntEQ((byte)test_ctx.c_buff[11], 0x00); /* record length: 2 */
11201120
ExpectIntEQ((byte)test_ctx.c_buff[12], 0x02);
11211121
ExpectIntEQ((byte)test_ctx.c_buff[13], 0x02); /* level: fatal */
11221122
ExpectIntEQ((byte)test_ctx.c_buff[14], 0x56); /* inappropriate_fallback */
@@ -1184,7 +1184,7 @@ int test_tls_fallback_scsv_no_downgrade(void)
11841184
return EXPECT_RESULT();
11851185
}
11861186

1187-
/* Negative control for MEDIUM-1: the fallback-SCSV ceiling must honor a
1187+
/* Negative control for runtime max version handling: the fallback-SCSV ceiling must honor a
11881188
* runtime-disabled version, not the compiled method version. A TLS 1.3 capable
11891189
* method (wolfSSLv23_server_method) has SSL_OP_NO_TLSv1_3 applied at runtime, so
11901190
* its effective maximum is TLS 1.2. A client that legitimately offers TLS 1.2

0 commit comments

Comments
 (0)