From fddb4afb7f5ad637d51c88765ec53a896187eab3 Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Fri, 8 Dec 2023 15:44:37 -0800 Subject: [PATCH] Change `port` from uint16_t to uint32_t, to support VSOCK --- include/aws/auth/credentials.h | 2 +- tests/credentials_provider_ecs_tests.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/aws/auth/credentials.h b/include/aws/auth/credentials.h index 7cd74912..86547297 100644 --- a/include/aws/auth/credentials.h +++ b/include/aws/auth/credentials.h @@ -277,7 +277,7 @@ struct aws_credentials_provider_ecs_options { /* * Port to query credentials from. If zero, 80/443 will be used based on whether or not tls is enabled. */ - uint16_t port; + uint32_t port; }; /** diff --git a/tests/credentials_provider_ecs_tests.c b/tests/credentials_provider_ecs_tests.c index e94941a5..dd311409 100644 --- a/tests/credentials_provider_ecs_tests.c +++ b/tests/credentials_provider_ecs_tests.c @@ -32,7 +32,7 @@ struct aws_mock_ecs_tester { struct aws_credentials *credentials; bool has_received_credentials_callback; bool has_received_shutdown_callback; - uint16_t selected_port; + uint32_t selected_port; int error_code; };