Skip to content

Commit

Permalink
add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed May 18, 2024
1 parent a96c4d5 commit 2e6c09c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/windows/secure_channel_tls_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,9 @@ struct aws_tls_ctx *s_ctx_new(
const struct aws_tls_ctx_options *options,
bool is_client_mode) {

bool is_above_win_10;
is_above_win_10 = is_windows_equal_or_above_10();
printf("\\\\\\\\\ windows is above 10? %d\n", is_above_win_10);
if (!aws_tls_is_cipher_pref_supported(options->cipher_pref)) {
aws_raise_error(AWS_IO_TLS_CIPHER_PREF_UNSUPPORTED);
AWS_LOGF_ERROR(AWS_LS_IO_TLS, "static: TLS Cipher Preference is not supported: %d.", options->cipher_pref);
Expand Down

0 comments on commit 2e6c09c

Please sign in to comment.