Skip to content

Commit

Permalink
Merge pull request #7629 from julek-wolfssl/test_wrong_cs_downgrade-c…
Browse files Browse the repository at this point in the history
…lamp

test_wrong_cs_downgrade: clamp error to exact value
  • Loading branch information
douzzer authored Jun 10, 2024
2 parents f7bc78c + 8c47e8d commit 202b0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -68530,8 +68530,8 @@ static int test_wrong_cs_downgrade(void)
test_ctx.c_len = sizeof(test_wrong_cs_downgrade_sh);

ExpectIntNE(wolfSSL_connect(ssl_c), WOLFSSL_SUCCESS);
ExpectIntNE(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
WOLFSSL_ERROR_WANT_READ);
ExpectIntEQ(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
MATCH_SUITE_ERROR);

wolfSSL_free(ssl_c);
wolfSSL_CTX_free(ctx_c);
Expand Down

0 comments on commit 202b0a1

Please sign in to comment.