Skip to content

Commit

Permalink
Create setter for TLS Cipher Preference for use by C++ CRT SDK (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexw91 committed Nov 15, 2022
1 parent 16986a8 commit d353ffd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/aws/io/tls_channel_handler.h
Expand Up @@ -621,6 +621,13 @@ AWS_IO_API int aws_tls_ctx_options_set_alpn_list(struct aws_tls_ctx_options *opt
*/
AWS_IO_API void aws_tls_ctx_options_set_verify_peer(struct aws_tls_ctx_options *options, bool verify_peer);

/**
* Sets preferred TLS Cipher List
*/
AWS_IO_API void aws_tls_ctx_options_set_tls_cipher_preference(
struct aws_tls_ctx_options *options,
enum aws_tls_cipher_pref cipher_pref);

/**
* Sets the minimum TLS version to allow.
*/
Expand Down
6 changes: 6 additions & 0 deletions source/tls_channel_handler.c
Expand Up @@ -459,6 +459,12 @@ void aws_tls_ctx_options_set_minimum_tls_version(
options->minimum_tls_version = minimum_tls_version;
}

void aws_tls_ctx_options_set_tls_cipher_preference(
struct aws_tls_ctx_options *options,
enum aws_tls_cipher_pref cipher_pref) {
options->cipher_pref = cipher_pref;
}

int aws_tls_ctx_options_override_default_trust_store_from_path(
struct aws_tls_ctx_options *options,
const char *ca_path,
Expand Down

0 comments on commit d353ffd

Please sign in to comment.