From 7f25f0c71014ec5d313c5a047a74cd2a96eb21e7 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Fri, 29 Oct 2021 10:38:32 -0700 Subject: [PATCH 1/2] Added const to aws_socket_options and aws_http_proxy_options in aws_websocket_client_connection_options --- include/aws/http/websocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/aws/http/websocket.h b/include/aws/http/websocket.h index 16e3cf1a1..a8291feb0 100644 --- a/include/aws/http/websocket.h +++ b/include/aws/http/websocket.h @@ -140,7 +140,7 @@ struct aws_websocket_client_connection_options { * Required. * aws_websocket_client_connect() makes a copy. */ - struct aws_socket_options *socket_options; + const struct aws_socket_options *socket_options; /** * Optional. @@ -153,7 +153,7 @@ struct aws_websocket_client_connection_options { * Optional * Configuration options related to http proxy usage. */ - struct aws_http_proxy_options *proxy_options; + const struct aws_http_proxy_options *proxy_options; /** * Required. From 566bb1320099d0f74a3bb6a2b361a82ebc65ef4e Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Fri, 29 Oct 2021 11:08:31 -0700 Subject: [PATCH 2/2] Added const to aws_tls_connection_options --- include/aws/http/websocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aws/http/websocket.h b/include/aws/http/websocket.h index a8291feb0..7b124bd18 100644 --- a/include/aws/http/websocket.h +++ b/include/aws/http/websocket.h @@ -147,7 +147,7 @@ struct aws_websocket_client_connection_options { * aws_websocket_client_connect() deep-copies all contents except the `aws_tls_ctx`, * which must outlive the the connection. */ - struct aws_tls_connection_options *tls_options; + const struct aws_tls_connection_options *tls_options; /** * Optional