Skip to content

Commit

Permalink
use explicit policy for ecc selection test
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed Nov 27, 2024
1 parent 3ff5207 commit 371ceec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/unit/s2n_client_supported_groups_extension_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,15 @@ int main()

for (size_t i = 0; i < NUM_MISMATCH_PQ_TEST_POLICY_OVERRIDES; i++) {
EXPECT_SUCCESS(s2n_enable_tls13_in_test());

DEFER_CLEANUP(struct s2n_config *config = s2n_config_new(),
s2n_config_ptr_free);
EXPECT_NOT_NULL(config);
EXPECT_SUCCESS(s2n_config_set_cipher_preferences(config, "default_tls13"));
/* These tests explicitly set security_policy_override to test ECC
* selection logic and expect a s2n_config that does support x25519 and
* TLS 1.3, but does not support PQ.
*/
EXPECT_SUCCESS(s2n_config_set_cipher_preferences(config, "20240503"));

struct s2n_connection *client_conn = NULL;
EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT));
Expand Down

0 comments on commit 371ceec

Please sign in to comment.