Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Nov 6, 2024
1 parent b4c9306 commit 79ba389
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions include/aws/io/private/tls_channel_handler_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ enum aws_tls_handler_read_state {
AWS_TLS_HANDLER_READ_SHUT_DOWN_COMPLETE,
};

/* Apple Network socket connections when using secitem handles both the TCP and TLS
* handshakes with a singular completion state change/callback.
* Various TLS related elements must be accessible during the socket creation
* and listener binding to fit within the framework around TCP, TLS, and ALPN.
* This struct is used as a container that can retrieve the necessary elements when
* they are needed. */
struct tls_connection_context {
struct aws_string *host_name;
struct aws_string *alpn_list;
Expand Down
4 changes: 2 additions & 2 deletions include/aws/io/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ typedef void(aws_socket_on_connection_result_fn)(struct aws_socket *socket, int
struct aws_tls_connection_options;

/**
* Called to retrieve TLS related options during socket creation/initialization. Typically the TLS
* handshake occurs after a socket connection is established but Apple Network Framework requires
* Called to retrieve TLS related options during socket creation/initialization and socket listener binding.
* Typically the TLS handshake occurs after a socket connection is established but Apple Network Framework requires
* the setup of TLS related parameters at creation of the connection as its internal framework
* handles both the socket connection and the TLS handshake.
*/
Expand Down

0 comments on commit 79ba389

Please sign in to comment.