From: "comododragon (Code Review)" Date: Wed, 18 Jun 2025 08:21:54 +0000 References: Reply-To: rein.vanbaaren@...1435..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="WtT8DFYcCSA="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Removed trailing whitespaces List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --WtT8DFYcCSA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1045?usp=3Demail to review the following change. Change subject: Removed trailing whitespaces ...................................................................... Removed trailing whitespaces Change-Id: I8eb1ded62a415a0734de11a4503cffafcc23d9f3 --- M src/openvpn/ssl_openssl.c M src/openvpn/wolfssl_compat.h 2 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/1045/1 diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 5dbacf0..29aa502 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -593,7 +593,7 @@ #ifdef ENABLE_CRYPTO_WOLFSSL int nid =3D wolfssl_OBJ_sn2nid(token); -#else +#else int nid =3D OBJ_sn2nid(token); #endif diff --git a/src/openvpn/wolfssl_compat.h b/src/openvpn/wolfssl_compat.h index c16d918..a25e5c3 100644 --- a/src/openvpn/wolfssl_compat.h +++ b/src/openvpn/wolfssl_compat.h @@ -31,18 +31,18 @@ #ifdef ENABLE_CRYPTO_WOLFSSL -int -wolfssl_OBJ_sn2nid(const char *sn) +int +wolfssl_OBJ_sn2nid(const char *sn) { - int nid =3D OBJ_sn2nid(sn); + int nid =3D OBJ_sn2nid(sn); - if (nid =3D=3D WC_NID_undef) - { - return wolfSSL_EC_curve_nist2nid(sn); - } + if (nid =3D=3D WC_NID_undef) + { + return wolfSSL_EC_curve_nist2nid(sn); + } - return WC_NID_undef; + return WC_NID_undef; } #endif -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1045?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I8eb1ded62a415a0734de11a4503cffafcc23d9f3 Gerrit-Change-Number: 1045 Gerrit-PatchSet: 1 Gerrit-Owner: comododragon Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --WtT8DFYcCSA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

comododragon would like plaisthos and flichtenheld to review this change.

V= iew Change

Removed trailing whitespaces

Change-Id: I8eb1ded62a41= 5a0734de11a4503cffafcc23d9f3
---
M src/openvpn/ssl_openssl.c
M src= /openvpn/wolfssl_compat.h
2 files changed, 9 insertions(+), 9 deletions(= -)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/4=
5/1045/1
diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_o=
penssl.c
index 5dbacf0..29aa502 100644
--- = a/src/openvpn/ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c=
@@ -593,7 +593,7 @@

#if= def ENABLE_CRYPTO_WOLFSSL
int nid =3D wolfssl_OBJ_= sn2nid(token);
-#else <= /span>
+#else
int nid =3D OBJ_sn2nid(token);

#endif
diff --git a/src/openvpn/wolfssl_compat.h b/src/op= envpn/wolfssl_compat.h
index c16d918..a25e5c3 100644=
--- a/src/openvpn/wolfssl_compat.h
+++ b/src/open= vpn/wolfssl_compat.h
@@ -31,18 +31,18 @@
<= /span>
#ifdef ENABLE_CRYPTO_WOLFSSL

<= span style=3D"color: hsl(0, 100%, 40%);">-int

-wolfssl_OBJ_sn2nid(const char *sn)
+int
+wolfssl_OBJ_sn2nid(const char *sn)
{

-= int nid =3D OBJ_sn2nid(sn);
+ int nid =3D OBJ_sn2nid(sn);

- if (nid =3D=3D WC_NID_undef)

- {
- return wolfSSL_EC_curve_nist2nid(s= n);
- }
+ if (nid =3D=3D WC_NID_undef)
+ {
+ return wolfSSL_EC_curve_nist2nid(sn);=
+ }
=
- return WC_NID_un= def;
+ return WC_NID_= undef;
}

#endif<= br>

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8eb1ded62a415a0734de11a4503= cffafcc23d9f3
Gerrit-Change-Number: 1045
Gerrit-PatchSet: 1
Gerrit-Owner: comododragon <rein.vanbaaren@= ...1435...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--WtT8DFYcCSA=--