Skip to content

Commit

Permalink
test_wrong_cs_downgrade: clamp error to exact value
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl committed Jun 7, 2024
1 parent 1c51465 commit 8c47e8d
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 @@ -68462,8 +68462,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 8c47e8d

Please sign in to comment.