Skip to contentSkip to conversation

Change in openvpn[master]: Unbreak Mbed TLS 4 build

Openvpn-devel In review MaxF (Code Review) 2 participants 7 messages Feb 17 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1771329387000.Ia5d330fe5c922aaa6948c1fb05c9a4947c833311@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email

to review the following change.

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
---
M src/openvpn/crypto_mbedtls.c
M src/openvpn/mbedtls_compat.h

2 files changed, 2 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/38/1538/1

src/openvpn/crypto_mbedtls.c +1 -1
index cba6bb5..e8931d7 100644
@@ -700,7 +700,7 @@
 md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *dst)
 {
     const md_info_t *md = md_get(mdname);
-    if (md == NULL || src_len < 0)
+    if (md == NULL)
     {
         return false;
     }
src/openvpn/mbedtls_compat.h +1 -0
index 667529e..50739b6 100644
@@ -36,6 +36,7 @@
 
 #include <mbedtls/asn1.h>
 #include <mbedtls/pk.h>
+#include <mbedtls/version.h>
 
 #if MBEDTLS_VERSION_NUMBER < 0x04000000
 #include <mbedtls/ctr_drbg.h>

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 1
Gerrit-Owner: MaxF <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email

to look at the new patch set (#2).

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

---
M src/openvpn/crypto_mbedtls.c
M src/openvpn/mbedtls_compat.h

2 files changed, 2 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/38/1538/2

src/openvpn/crypto_mbedtls.c +1 -1
index cba6bb5..e8931d7 100644
@@ -700,7 +700,7 @@
 md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *dst)
 {
     const md_info_t *md = md_get(mdname);
-    if (md == NULL || src_len < 0)
+    if (md == NULL)
     {
         return false;
     }
src/openvpn/mbedtls_compat.h +1 -0
index 667529e..50739b6 100644
@@ -36,6 +36,7 @@
 
 #include <mbedtls/asn1.h>
 #include <mbedtls/pk.h>
+#include <mbedtls/version.h>
 
 #if MBEDTLS_VERSION_NUMBER < 0x04000000
 #include <mbedtls/ctr_drbg.h>

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 2
Gerrit-Owner: MaxF <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: MaxF, plaisthos.

flichtenheld has posted comments on this change by MaxF. ( http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email )

Change subject: Unbreak Mbed TLS 4 build
......................................................................

Patch Set 2: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 2
Gerrit-Owner: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: MaxF <[email protected]...>
Gerrit-Comment-Date: Tue, 17 Feb 2026 17:10:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#4 lore raw

PATCH v2 1/1 Unbreak Mbed TLS 4 build

In reply to a message not in the archive

From: Max Fillinger <[email protected]...>

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

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
This mail reflects revision 2 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>

src/openvpn/crypto_mbedtls.c +1 -1
index cba6bb5..e8931d7 100644
@@ -700,7 +700,7 @@
 md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *dst)
 {
     const md_info_t *md = md_get(mdname);
-    if (md == NULL || src_len < 0)
+    if (md == NULL)
     {
         return false;
     }
src/openvpn/mbedtls_compat.h +1 -0
index 667529e..50739b6 100644
@@ -36,6 +36,7 @@
 
 #include <mbedtls/asn1.h>
 #include <mbedtls/pk.h>
+#include <mbedtls/version.h>
 
 #if MBEDTLS_VERSION_NUMBER < 0x04000000
 #include <mbedtls/ctr_drbg.h>
#5 lore raw

[Openvpn-devel] [PATCH applied] Re: Unbreak Mbed TLS 4 build

Thanks. Indeed, as confirmed by GHA, this un-breaks things :-)

Your patch has been applied to the master branch.

commit cb7446c23927c1d61c2694152b3e01e81d517e37

Author: Max Fillinger
Date:   Tue Feb 17 18:13:00 2026 +0100
     Unbreak Mbed TLS 4 build

     Signed-off-by: Max Fillinger <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg35701.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#6 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#3) to the change originally created by MaxF. ( http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld

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

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35701.html

---
M src/openvpn/crypto_mbedtls.c
M src/openvpn/mbedtls_compat.h

2 files changed, 2 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/38/1538/3

src/openvpn/crypto_mbedtls.c +1 -1
index cba6bb5..e8931d7 100644
@@ -700,7 +700,7 @@
 md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *dst)
 {
     const md_info_t *md = md_get(mdname);
-    if (md == NULL || src_len < 0)
+    if (md == NULL)
     {
         return false;
     }
src/openvpn/mbedtls_compat.h +1 -0
index 667529e..50739b6 100644
@@ -36,6 +36,7 @@
 
 #include <mbedtls/asn1.h>
 #include <mbedtls/pk.h>
+#include <mbedtls/version.h>
 
 #if MBEDTLS_VERSION_NUMBER < 0x04000000
 #include <mbedtls/ctr_drbg.h>

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 3
Gerrit-Owner: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>

#7 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email )

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

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1538
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35701.html

---
M src/openvpn/crypto_mbedtls.c
M src/openvpn/mbedtls_compat.h

2 files changed, 2 insertions(+), 1 deletion(-)
src/openvpn/crypto_mbedtls.c +1 -1
index cba6bb5..e8931d7 100644
@@ -700,7 +700,7 @@
 md_full(const char *mdname, const uint8_t *src, size_t src_len, uint8_t *dst)
 {
     const md_info_t *md = md_get(mdname);
-    if (md == NULL || src_len < 0)
+    if (md == NULL)
     {
         return false;
     }
src/openvpn/mbedtls_compat.h +1 -0
index 667529e..50739b6 100644
@@ -36,6 +36,7 @@
 
 #include <mbedtls/asn1.h>
 #include <mbedtls/pk.h>
+#include <mbedtls/version.h>
 
 #if MBEDTLS_VERSION_NUMBER < 0x04000000
 #include <mbedtls/ctr_drbg.h>

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1538?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia5d330fe5c922aaa6948c1fb05c9a4947c833311
Gerrit-Change-Number: 1538
Gerrit-PatchSet: 3
Gerrit-Owner: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>