Skip to content

Commit

Permalink
Adds missing const in tls_channel_handler (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Oct 13, 2022
1 parent 550e319 commit cd02413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/aws/io/tls_channel_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ AWS_IO_API int aws_tls_ctx_options_init_client_mtls_pkcs12_from_path(
struct aws_tls_ctx_options *options,
struct aws_allocator *allocator,
const char *pkcs12_path,
struct aws_byte_cursor *pkcs_pwd);
const struct aws_byte_cursor *pkcs_pwd);

/**
* Initializes options for use with mutual tls in client mode.
Expand Down Expand Up @@ -689,7 +689,7 @@ AWS_IO_API void aws_tls_connection_options_set_callbacks(
AWS_IO_API int aws_tls_connection_options_set_server_name(
struct aws_tls_connection_options *conn_options,
struct aws_allocator *allocator,
struct aws_byte_cursor *server_name);
const struct aws_byte_cursor *server_name);

/**
* Sets alpn list in the form <protocol1;protocol2;...>. A maximum of 4 protocols are supported.
Expand Down
4 changes: 2 additions & 2 deletions source/tls_channel_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int aws_tls_ctx_options_init_client_mtls_pkcs12_from_path(
struct aws_tls_ctx_options *options,
struct aws_allocator *allocator,
const char *pkcs12_path,
struct aws_byte_cursor *pkcs_pwd) {
const struct aws_byte_cursor *pkcs_pwd) {

#ifdef __APPLE__
aws_tls_ctx_options_init_default_client(options, allocator);
Expand Down Expand Up @@ -615,7 +615,7 @@ void aws_tls_connection_options_set_callbacks(
int aws_tls_connection_options_set_server_name(
struct aws_tls_connection_options *conn_options,
struct aws_allocator *allocator,
struct aws_byte_cursor *server_name) {
const struct aws_byte_cursor *server_name) {

if (conn_options->server_name != NULL) {
aws_string_destroy(conn_options->server_name);
Expand Down

0 comments on commit cd02413

Please sign in to comment.