From 98a6c5aa89a45bbc930443a9074b39b9d724c01a Mon Sep 17 00:00:00 2001 From: Yunhao Ling Date: Thu, 6 Feb 2020 11:50:01 -0800 Subject: [PATCH] update tls options when creating tlsio on macos --- .../deps/azure-c-shared-utility/pal/ios-osx/tlsio_appleios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/ios-osx/tlsio_appleios.c b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/ios-osx/tlsio_appleios.c index 71b382c57..7c0cd95d7 100644 --- a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/ios-osx/tlsio_appleios.c +++ b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/pal/ios-osx/tlsio_appleios.c @@ -258,7 +258,7 @@ static CONCRETE_IO_HANDLE tlsio_appleios_create(void* io_create_parameters) result->sockWrite = NULL; result->hostname = NULL; result->pending_transmission_list = NULL; - tlsio_options_initialize(&result->options, TLSIO_OPTION_BIT_NONE); + tlsio_options_initialize(&result->options, TLSIO_OPTION_BIT_TRUSTED_CERTS); /* Codes_SRS_TLSIO_30_016: [ tlsio_create shall make a copy of the hostname member of io_create_parameters to allow deletion of hostname immediately after the call. ]*/ if (NULL == (result->hostname = CFStringCreateWithCString(NULL, tls_io_config->hostname, kCFStringEncodingUTF8))) {