Skip to content

Commit 6d8c797

Browse files
committed
Set verify peers to false
1 parent 4a71592 commit 6d8c797

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/tls_handler_test.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,11 @@ AWS_TEST_CASE(
13381338
tls_client_channel_negotiation_error_socket_closed,
13391339
s_tls_client_channel_negotiation_error_socket_closed_fn);
13401340

1341+
static void s_raise_tls_version_to_13_and_verify_false(struct aws_tls_ctx_options *options) {
1342+
aws_tls_ctx_options_set_verify_peer(options, false);
1343+
aws_tls_ctx_options_set_minimum_tls_version(options, AWS_IO_TLSv1_3);
1344+
}
1345+
13411346
AWS_STATIC_STRING_FROM_LITERAL(s_aws_local_tls_server_host_name, "127.0.0.1");
13421347

13431348
static int s_tls_client_channel_negotiation_error_tls1_3_to_tls1_2_server_fn(
@@ -1346,7 +1351,7 @@ static int s_tls_client_channel_negotiation_error_tls1_3_to_tls1_2_server_fn(
13461351
(void)ctx;
13471352
uint32_t server_tls1_2_port = 58443;
13481353
return s_verify_negotiation_fails(
1349-
allocator, s_aws_local_tls_server_host_name, server_tls1_2_port, &s_raise_tls_version_to_13);
1354+
allocator, s_aws_local_tls_server_host_name, server_tls1_2_port, &s_raise_tls_version_to_13_and_verify_false);
13501355
}
13511356

13521357
AWS_TEST_CASE(

0 commit comments

Comments
 (0)