Skip to content

Commit 202b0a1

Browse files
authored
Merge pull request #7629 from julek-wolfssl/test_wrong_cs_downgrade-clamp
test_wrong_cs_downgrade: clamp error to exact value
2 parents f7bc78c + 8c47e8d commit 202b0a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68530,8 +68530,8 @@ static int test_wrong_cs_downgrade(void)
6853068530
test_ctx.c_len = sizeof(test_wrong_cs_downgrade_sh);
6853168531

6853268532
ExpectIntNE(wolfSSL_connect(ssl_c), WOLFSSL_SUCCESS);
68533-
ExpectIntNE(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
68534-
WOLFSSL_ERROR_WANT_READ);
68533+
ExpectIntEQ(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
68534+
MATCH_SUITE_ERROR);
6853568535

6853668536
wolfSSL_free(ssl_c);
6853768537
wolfSSL_CTX_free(ctx_c);

0 commit comments

Comments
 (0)