From 0b7ba13ee04377184fa617274c6b0267547cec2b Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Tue, 7 Jan 2025 16:49:29 -0800 Subject: [PATCH] update renamed files --- source/darwin/dispatch_queue_event_loop_private.h | 14 ++++++++++++-- source/darwin/nw_socket.c | 2 +- .../darwin/secure_transport_tls_channel_handler.c | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/source/darwin/dispatch_queue_event_loop_private.h b/source/darwin/dispatch_queue_event_loop_private.h index 394bb7f74..0b425219e 100644 --- a/source/darwin/dispatch_queue_event_loop_private.h +++ b/source/darwin/dispatch_queue_event_loop_private.h @@ -14,6 +14,17 @@ struct dispatch_loop; struct dispatch_loop_context; +struct secure_transport_ctx { + struct aws_tls_ctx ctx; + CFAllocatorRef wrapped_allocator; + CFArrayRef certs; + SecIdentityRef secitem_identity; + CFArrayRef ca_cert; + enum aws_tls_versions minimum_version; + struct aws_string *alpn_list; + bool verify_peer; +}; + struct dispatch_loop { struct aws_allocator *allocator; dispatch_queue_t dispatch_queue; @@ -30,8 +41,7 @@ struct dispatch_loop { /* Synced data handle cross thread tasks and events, and event loop operations*/ struct { /** - * The lock is used to protect synced_data across the threads. It should be acquired whenever we touched the - * data in this synced_data struct. + * The lock is used to protect synced_data across the threads. It should be */ struct aws_mutex lock; /* diff --git a/source/darwin/nw_socket.c b/source/darwin/nw_socket.c index 14f3ee30a..c634a6fcc 100644 --- a/source/darwin/nw_socket.c +++ b/source/darwin/nw_socket.c @@ -18,7 +18,7 @@ #include #include -#include "dispatch_queue.h" +#include "./dispatch_queue_event_loop_private.h" static int s_determine_socket_error(int error) { switch (error) { diff --git a/source/darwin/secure_transport_tls_channel_handler.c b/source/darwin/secure_transport_tls_channel_handler.c index 9e72a4626..61d3d5b4b 100644 --- a/source/darwin/secure_transport_tls_channel_handler.c +++ b/source/darwin/secure_transport_tls_channel_handler.c @@ -24,7 +24,7 @@ #include #include -#include "dispatch_queue.h" +#include "./dispatch_queue_event_loop_private.h" #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-variable"