From b0a20087cbaf64acc0c594eba3e1df9c7be2fbb4 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 27 Nov 2024 16:49:36 +0100 Subject: [PATCH 1/3] test --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ff9b61de20..355fb9d4d3 100644 --- a/configure.ac +++ b/configure.ac @@ -4498,6 +4498,7 @@ AC_ARG_ENABLE([tlsv12], if test "$ENABLED_CRYPTONLY" = "yes" then ENABLED_TLSV12=no + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RW_THREADED" fi if test "$ENABLED_TLSV12" = "no" then @@ -6450,7 +6451,7 @@ then fi if test "$ENABLED_TLS13" = "yes" then - AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TLS13 -DHAVE_TLS_EXTENSIONS" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TLS13 -DHAVE_TLS_EXTENSIONS -DWOLFSSL_RW_THREADED" fi From 5cc000f02f7c483682fd6a7a81f817805d7455b3 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 27 Nov 2024 17:01:12 +0100 Subject: [PATCH 2/3] WOLFSSL_THREADED_CRYPT --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 355fb9d4d3..3749a238fc 100644 --- a/configure.ac +++ b/configure.ac @@ -4498,7 +4498,7 @@ AC_ARG_ENABLE([tlsv12], if test "$ENABLED_CRYPTONLY" = "yes" then ENABLED_TLSV12=no - AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RW_THREADED" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RW_THREADED -DWOLFSSL_THREADED_CRYPT" fi if test "$ENABLED_TLSV12" = "no" then @@ -6451,7 +6451,7 @@ then fi if test "$ENABLED_TLS13" = "yes" then - AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TLS13 -DHAVE_TLS_EXTENSIONS -DWOLFSSL_RW_THREADED" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TLS13 -DHAVE_TLS_EXTENSIONS -DWOLFSSL_RW_THREADED -DWOLFSSL_THREADED_CRYPT" fi From b3d4109decdf34aab61345d29e4b569e06d16a22 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 27 Nov 2024 17:35:43 +0100 Subject: [PATCH 3/3] simple fix --- src/internal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal.c b/src/internal.c index 462e3c7244..5af5728cdc 100644 --- a/src/internal.c +++ b/src/internal.c @@ -24987,11 +24987,13 @@ int SendData(WOLFSSL* ssl, const void* data, int sz) ssl->error = ret; return WOLFSSL_FATAL_ERROR; } +#ifdef WOLFSSL_DTLS13 if (ssl->dtls13WaitKeyUpdateAck) { ret = DoDtls13KeyUpdateAck(ssl); if (ret != 0) return ret; } +#endif #endif for (;;) {