Skip to content

Commit fed3b47

Browse files
committed
fix: change MBEDTLS_SSL_OUT_CONTENT_LEN to 4096
Set MBEDTLS_SSL_OUT_CONTENT_LEN to a smaller number when TLS 1.3 is enabled, becase MBEDTLS_SSL_MAX_FRAGMENT_LENGTH is not supported in TLS 1.3
1 parent f9fefe0 commit fed3b47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mbedtls-sys/build/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ pub const FEATURE_DEFINES: &'static [(&'static str, CDefine)] = &[
421421
("tls13", ("MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE", DefinedAs("6000"))),
422422
("tls13", ("MBEDTLS_SSL_TLS1_3_TICKET_NONCE_LENGTH", DefinedAs("32"))),
423423
("tls13", ("MBEDTLS_SSL_TLS1_3_DEFAULT_NEW_SESSION_TICKETS", DefinedAs("1"))),
424+
// TODO: This is added becuase of issue: #293
425+
// Once upstream support MBEDTLS_SSL_RECORD_SIZE_LIMIT extension for TLS 1.3, we need to remove this
426+
("tls13", ("MBEDTLS_SSL_OUT_CONTENT_LEN", DefinedAs("4096"))),
424427
];
425428

426429
#[cfg_attr(rustfmt, rustfmt_skip)]

0 commit comments

Comments
 (0)