Skip to content

Commit 075aa74

Browse files
committed
Merge branch 'grand_dispatch_queue' of github.com:awslabs/aws-c-io into dispatch_queue_vcc
2 parents 2ad7fa4 + ca0228a commit 075aa74

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

include/aws/io/tls_channel_handler.h

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ enum aws_tls_cipher_pref {
4343
*/
4444
AWS_IO_TLS_CIPHER_PREF_PQ_TLSV1_2_2024_10 = 7,
4545

46+
/* Recommended default policy with post-quantum algorithm support. This policy may change over time. */
47+
AWS_IO_TLS_CIPHER_PREF_PQ_DEFAULT = 8,
48+
4649
AWS_IO_TLS_CIPHER_PREF_END_RANGE = 0xFFFF
4750
};
4851

source/s2n/s2n_tls_channel_handler.c

+6
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ bool aws_tls_is_cipher_pref_supported(enum aws_tls_cipher_pref cipher_pref) {
272272
return true;
273273
case AWS_IO_TLS_CIPHER_PREF_PQ_TLSV1_2_2024_10:
274274
return true;
275+
case AWS_IO_TLS_CIPHER_PREF_PQ_DEFAULT:
276+
return true;
275277
#endif
276278

277279
default:
@@ -1535,6 +1537,10 @@ static struct aws_tls_ctx *s_tls_ctx_new(
15351537
/* No-Op, if the user configured a minimum_tls_version then a version-specific Cipher Preference was set
15361538
*/
15371539
break;
1540+
case AWS_IO_TLS_CIPHER_PREF_PQ_DEFAULT:
1541+
/* The specific PQ policy used here may change over time. */
1542+
security_policy = "AWS-CRT-SDK-TLSv1.2-2023-PQ";
1543+
break;
15381544
case AWS_IO_TLS_CIPHER_PREF_PQ_TLSv1_0_2021_05:
15391545
security_policy = "PQ-TLS-1-0-2021-05-26";
15401546
break;

0 commit comments

Comments
 (0)