Skip to content

Commit

Permalink
explicit policy
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed Nov 27, 2024
1 parent 513b8c7 commit f5f1036
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,14 @@ 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"));
/* Since these tests are directly setting security_policy_override, set a
* s2n_config that doesn't support PQ but does support x25519 and TLS 1.3
*/
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 f5f1036

Please sign in to comment.