From: "cron2 (Code Review)" Date: Thu, 26 Mar 2026 14:18:57 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <291dfddf3fbbce1d2b9587f7b49343cb805c4617-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="0M6xATGxvZA="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Use const specifices in extract_x509_field_ssl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --0M6xATGxvZA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Use const specifices in extract_x509_field_ssl ...................................................................... Use const specifices in extract_x509_field_ssl The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well. Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588 Message-Id: <20260326110658.25741-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 291.html Signed-off-by: Gert Doering --- M src/openvpn/ssl_verify_openssl.c 1 file changed, 2 insertions(+), 4 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/88/1588/3 diff --git a/src/openvpn/ssl_verify_openssl.c b/src/openvpn/ssl_verify_open= ssl.c index d96879b..08946cd 100644 --- a/src/openvpn/ssl_verify_openssl.c +++ b/src/openvpn/ssl_verify_openssl.c @@ -195,8 +195,6 @@ { int lastpos =3D -1; int tmp =3D -1; - X509_NAME_ENTRY *x509ne =3D NULL; - ASN1_STRING *asn1 =3D NULL; unsigned char *buf =3D NULL; ASN1_OBJECT *field_name_obj =3D OBJ_txt2obj(field_name, 0); @@ -222,13 +220,13 @@ return FAILURE; } - x509ne =3D X509_NAME_get_entry(x509, lastpos); + const X509_NAME_ENTRY *x509ne =3D X509_NAME_get_entry(x509, lastpos); if (!x509ne) { return FAILURE; } - asn1 =3D X509_NAME_ENTRY_get_data(x509ne); + const ASN1_STRING *asn1 =3D X509_NAME_ENTRY_get_data(x509ne); if (!asn1) { return FAILURE; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a Gerrit-Change-Number: 1588 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel --0M6xATGxvZA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by plaisthos.<= /p>

Vi= ew Change

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

Use const specifices in extr=
act_x509_field_ssl

The new OpenSSL 4.0 will return const objects fro= m these objects, so
make them const in our code as well.

Change-I= d: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Signed-off-by: Arne Schwabe= <arne@...1227...>
Acked-by: Frank Lichtenheld <frank@...2723...= .>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
Message= -Id: <20260326110658.25741-1-gert@...1296...>
URL: https://www.mai= l-archive.com/openvpn-devel@lists.sourceforge.net/msg36291.html
Signed-o= ff-by: Gert Doering <gert@...1296...>
---
M src/openvpn/ssl_ver= ify_openssl.c
1 file changed, 2 insertions(+), 4 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/chang=
es/88/1588/3
diff --git a/src/openvpn/ssl_verify_openssl.c b/src/op=
envpn/ssl_verify_openssl.c
index d96879b..08946cd 100644
--- a/src/openvpn/ssl_verify_openssl.c
+++ b/= src/openvpn/ssl_verify_openssl.c
@@ -195,8 +195,6 @@=
{
int lastpos =3D -1;
= int tmp =3D -1;
- X5= 09_NAME_ENTRY *x509ne =3D NULL;
- ASN1_STRING *asn1 =3D NULL;
unsigned cha= r *buf =3D NULL;

ASN1_OBJECT *field_= name_obj =3D OBJ_txt2obj(field_name, 0);
@@ -222,13 +220,13= @@
return FAILURE;
}<= br>
- x509ne = =3D X509_NAME_get_entry(x509, lastpos);
+ const X509_NAME_ENTRY *x509ne =3D X509_NAME_get_ent= ry(x509, lastpos);
if (!x509ne)
{=
return FAILURE;
}
=
- asn1 =3D X= 509_NAME_ENTRY_get_data(x509ne);
+ const ASN1_STRING *asn1 =3D X509_NAME_ENTRY_get_data(x509n= e);
if (!asn1)
{
= return FAILURE;

To view, visit= change = 1588. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a= 64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --0M6xATGxvZA=--