Merge pull request #7456 from mrdeep1/enable-dtls13

dtls1.3: Fix issues when --enable-dtls13 enabled
pull/7475/head
Sean Parkinson 2024-04-26 09:24:01 +10:00 committed by GitHub
commit 54022b146b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -e
# dtlscid.test
# Copyright wolfSSL 2022-2024
# if we can, isolate the network namespace to eliminate port collisions.
if [[ -n "$NETWORK_UNSHARE_HELPER" ]]; then

View File

@ -6120,8 +6120,12 @@ static int TLSX_SupportedVersions_Write(void* data, byte* output,
#ifdef WOLFSSL_DTLS13
if (ssl->options.dtls) {
tls13minor = (byte)DTLSv1_3_MINOR;
#ifndef WOLFSSL_NO_TLS12
tls12minor = (byte)DTLSv1_2_MINOR;
#endif
#ifndef NO_OLD_TLS
tls11minor = (byte)DTLS_MINOR;
#endif
isDtls = 1;
}
#endif /* WOLFSSL_DTLS13 */

View File

@ -4443,7 +4443,7 @@ int SendTls13ClientHello(WOLFSSL* ssl)
{
#ifdef WOLFSSL_DTLS_CH_FRAG
int maxFrag = wolfSSL_GetMaxFragSize(ssl, MAX_RECORD_SIZE);
word16 maxFrag = wolfSSL_GetMaxFragSize(ssl, MAX_RECORD_SIZE);
word16 lenWithoutExts = args->length;
#endif