From: "cron2 (Code Review)" Date: Tue, 17 Feb 2026 21:29:10 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., max@...2606... Message-ID: <51cb3a447a57f1a94955de6a4d895fdca3d8de16-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="hfSqiV2rtYQ="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Unbreak Mbed TLS 4 build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: MaxF Cc: flichtenheld , plaisthos , openvpn-devel --hfSqiV2rtYQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15= 38?usp=3Demail ) Change subject: Unbreak Mbed TLS 4 build ...................................................................... Unbreak Mbed TLS 4 build The previous Mbed TLS 4 change removed the mbedtls/version.h include from syshead.h. But this include in mbedtls_compat.h where it's needed. Also fix a warning by removing a size_t < 0 comparison. Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311 Signed-off-by: Max Fillinger Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538 Message-Id: <20260217171306.31229-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 701.html Signed-off-by: Gert Doering --- M src/openvpn/crypto_mbedtls.c M src/openvpn/mbedtls_compat.h 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openvpn/crypto_mbedtls.c b/src/openvpn/crypto_mbedtls.c index cba6bb5..e8931d7 100644 --- a/src/openvpn/crypto_mbedtls.c +++ b/src/openvpn/crypto_mbedtls.c @@ -700,7 +700,7 @@ md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *d= st) { const md_info_t *md =3D md_get(mdname); - if (md =3D=3D NULL || src_len < 0) + if (md =3D=3D NULL) { return false; } diff --git a/src/openvpn/mbedtls_compat.h b/src/openvpn/mbedtls_compat.h index 667529e..50739b6 100644 --- a/src/openvpn/mbedtls_compat.h +++ b/src/openvpn/mbedtls_compat.h @@ -36,6 +36,7 @@ #include #include +#include #if MBEDTLS_VERSION_NUMBER < 0x04000000 #include -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311 Gerrit-Change-Number: 1538 Gerrit-PatchSet: 3 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --hfSqiV2rtYQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Unbreak Mbed TLS 4 build

The previous Mbe= d TLS 4 change removed the mbedtls/version.h include
from syshead.h. But= this include in mbedtls_compat.h where it's needed.

Also fix a = warning by removing a size_t < 0 comparison.

Change-Id: Ia5d330fe= 5c922aaa6948c1fb05c9a4947c833311
Signed-off-by: Max Fillinger <maximi= lian.fillinger@...2918...>
Acked-by: Frank Lichtenheld <frank@...1665...= 641...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
Me= ssage-Id: <20260217171306.31229-1-gert@...1296...>
URL: https://ww= w.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35701.html
Sig= ned-off-by: Gert Doering <gert@...1296...>
---
M src/openvpn/cr= ypto_mbedtls.c
M src/openvpn/mbedtls_compat.h
2 files changed, 2 inse= rtions(+), 1 deletion(-)

diff --git a/src/openvpn/crypto_mbedtls.c b/src/openvpn/crypto_mbedtls.c=

index cba6bb5..e8931d7 100644
--- a/src/op= envpn/crypto_mbedtls.c
+++ b/src/openvpn/crypto_mbedtls.c
@@ -700,7 +700,7 @@
md_full(const char *mdn= ame, const uint8_t *src, size_t src_len, uint8_t *dst)
{
const md_info_t *md =3D md_get(mdname);
- if (md =3D=3D NULL || src_len <= ; 0)

+ if (md =3D= =3D NULL)
{
return false;

}
diff --git a/src/openvpn/mbedtls_compat= .h b/src/openvpn/mbedtls_compat.h
index 667529e..50739b6 10= 0644
--- a/src/openvpn/mbedtls_compat.h
+++= b/src/openvpn/mbedtls_compat.h
@@ -36,6 +36,7 @@
#include <mbedtls/asn1.h>
= #include <mbedtls/pk.h>
+#include <mbedtls/version.h>

#if MBEDTLS_VERSION_NUMBER < 0x04000000
#include &= lt;mbedtls/ctr_drbg.h>

To view, visi= t change= 1538. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c= 9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 3
Gerrit-Owner: MaxF <max@...2606...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --hfSqiV2rtYQ=--