From: "flichtenheld (Code Review)" Date: Fri, 8 May 2026 11:27:28 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <00e78a1288974884bfa2de8e5ff9f5c9945272c4-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="T6hg9l00DIc="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Do not use deprecated aliases on Windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --T6hg9l00DIc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/+/1673?usp=3Demail to review the following change. Change subject: Do not use deprecated aliases on Windows ...................................................................... Do not use deprecated aliases on Windows Both these work perfectly fine but are discouraged and might cause warnings by compilers. Identified by cppcheck. Change-Id: I04e35928244e6ecda8c58285a812516662b50742 Signed-off-by: Frank Lichtenheld --- M src/openvpn/cryptoapi.c M src/openvpnmsica/openvpnmsica.c 2 files changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/73/1673/1 diff --git a/src/openvpn/cryptoapi.c b/src/openvpn/cryptoapi.c index e17936a..bf80bbd 100644 --- a/src/openvpn/cryptoapi.c +++ b/src/openvpn/cryptoapi.c @@ -235,7 +235,7 @@ if (pvext && cbext >=3D sizeof(CERT_TEMPLATE_EXT)) { const CERT_TEMPLATE_EXT *cte =3D (const CERT_TEMPLATE_EXT *)pv= ext; - if (!stricmp(cert_prop, cte->pszObjId)) + if (!_stricmp(cert_prop, cte->pszObjId)) { /* found direct OID match with certificate property specif= ied */ gc_free(&gc); @@ -244,7 +244,7 @@ const CRYPT_OID_INFO *tmpl_oid =3D find_oid(CRYPT_OID_INFO_NAME_KEY, tmpl_name, CRYPT_TEMPLAT= E_OID_GROUP_ID); - if (tmpl_oid && !stricmp(tmpl_oid->pszOID, cte->pszObjId)) + if (tmpl_oid && !_stricmp(tmpl_oid->pszOID, cte->pszObjId)) { /* found OID match in extension against resolved key */ gc_free(&gc); diff --git a/src/openvpnmsica/openvpnmsica.c b/src/openvpnmsica/openvpnmsic= a.c index d698c04..95e457c 100644 --- a/src/openvpnmsica/openvpnmsica.c +++ b/src/openvpnmsica/openvpnmsica.c @@ -508,7 +508,7 @@ *iTicks +=3D MSICA_ADAPTER_TICK_SIZE; break; } - else if (wcsicmp(szDisplayName, pAdapterOther->szName) =3D=3D 0) + else if (_wcsicmp(szDisplayName, pAdapterOther->szName) =3D=3D 0) { /* Adapter with a same name found. */ for (LPCWSTR hwid =3D pAdapterOther->szzHardwareIDs;; hwid += =3D wcslen(hwid) + 1) @@ -521,7 +521,7 @@ dwResult =3D ERROR_ALREADY_EXISTS; goto cleanup_pAdapterList; } - else if (wcsicmp(hwid, szHardwareId) =3D=3D 0) + else if (_wcsicmp(hwid, szHardwareId) =3D=3D 0) { /* This is an adapter with the requested hardware ID. = We already have what we * want! */ @@ -583,7 +583,7 @@ for (struct tap_adapter_node *pAdapter =3D pAdapterList; pAdapter !=3D= NULL; pAdapter =3D pAdapter->pNext) { - if (wcsicmp(szDisplayName, pAdapter->szName) =3D=3D 0) + if (_wcsicmp(szDisplayName, pAdapter->szName) =3D=3D 0) { /* Adapter found. */ WCHAR szArgument[8 /*disable=3D|enable=3D|delete=3D*/ @@ -1083,7 +1083,7 @@ for (struct tap_adapter_node *pAdapter =3D pAdapterList; p= Adapter !=3D NULL; pAdapter =3D pAdapter->pNext) { - if (wcsicmp(szName, pAdapter->szName) =3D=3D 0) + if (_wcsicmp(szName, pAdapter->szName) =3D=3D 0) { /* Adapter found. */ dwResult =3D tap_delete_adapter(NULL, &pAdapter->g= uid, &bRebootRequired); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1673?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I04e35928244e6ecda8c58285a812516662b50742 Gerrit-Change-Number: 1673 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --T6hg9l00DIc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

Do not use deprecated aliases on Windows
Both these work perfectly fine but are discouraged
and might cause = warnings by compilers.

Identified by cppcheck.

Change-Id: I04= e35928244e6ecda8c58285a812516662b50742
Signed-off-by: Frank Lichtenheld = <frank@...2641...>
---
M src/openvpn/cryptoapi.c
M src/openv= pnmsica/openvpnmsica.c
2 files changed, 6 insertions(+), 6 deletions(-)<= br>
git pull ssh://gerrit.openvpn.net:29418/openvpn =
refs/changes/73/1673/1
diff --git a/src/openvpn/cryptoapi.c b/src/o=
penvpn/cryptoapi.c
index e17936a..bf80bbd 100644
= --- a/src/openvpn/cryptoapi.c
+++ b/src/openvpn/crypt= oapi.c
@@ -235,7 +235,7 @@
if (pve= xt && cbext >=3D sizeof(CERT_TEMPLATE_EXT))
= {
const CERT_TEMPLATE_EXT *cte =3D (const= CERT_TEMPLATE_EXT *)pvext;
- if (!stricmp(cert_prop, cte->pszObjId))
+ if (!_stricmp(cert_pro= p, cte->pszObjId))
{
= /* found direct OID match with certificate property specified */=
gc_free(&gc);
@@ -244= ,7 +244,7 @@

const CRYPT_OID= _INFO *tmpl_oid =3D
find_oid(CRYPT_OID_INF= O_NAME_KEY, tmpl_name, CRYPT_TEMPLATE_OID_GROUP_ID);
- if (tmpl_oid && !stricm= p(tmpl_oid->pszOID, cte->pszObjId))
+ if (tmpl_oid && !_stricmp(tmpl_oi= d->pszOID, cte->pszObjId))
{
<= span> /* found OID match in extension against resolved key = */
gc_free(&gc);
diff = --git a/src/openvpnmsica/openvpnmsica.c b/src/openvpnmsica/openvpnmsica.c
index d698c04..95e457c 100644
--- a/src/open= vpnmsica/openvpnmsica.c
+++ b/src/openvpnmsica/openvpnmsica= .c
@@ -508,7 +508,7 @@
*iTicks= +=3D MSICA_ADAPTER_TICK_SIZE;
break; }
- = else if (wcsicmp(szDisplayName, pAdapterOther->szName) =3D=3D 0)
+ else if (_wcsi= cmp(szDisplayName, pAdapterOther->szName) =3D=3D 0)
= {
/* Adapter with a same name found. */
for (LPCWSTR hwid =3D pAdapterOther->szzHard= wareIDs;; hwid +=3D wcslen(hwid) + 1)
@@ -521,7 +521,7 @@
dwResult =3D ERROR_ALREADY_EXISTS;

goto cleanup_pAdapterList;
}
- = else if (wcsicmp(hwid, szHardwareId) =3D=3D 0)
+ else if (_wcsicmp(= hwid, szHardwareId) =3D=3D 0)
{
= /* This is an adapter with the requested hardwar= e ID. We already have what we
* want!= */
@@ -583,7 +583,7 @@
for (struct ta= p_adapter_node *pAdapter =3D pAdapterList; pAdapter !=3D NULL;
pAdapter =3D pAdapter->pNext)
{

- if (wcsicmp(szDispl= ayName, pAdapter->szName) =3D=3D 0)
+ if (_wcsicmp(szDisplayName, pAdapter->szName)= =3D=3D 0)
{
/* Adapt= er found. */
WCHAR szArgument[8 /*disable=3D|e= nable=3D|delete=3D*/
@@ -1083,7 +1083,7 @@
= for (struct tap_adapter_node *pAdapter =3D pAdapterList; p= Adapter !=3D NULL;
pAdapter =3D pAdap= ter->pNext)
{
- if (wcsicmp(szName, pAdapte= r->szName) =3D=3D 0)
+ if (_wcsicmp(szName, pAdapter->szName) =3D=3D 0)=
{
= /* Adapter found. */
dwResul= t =3D tap_delete_adapter(NULL, &pAdapter->guid, &bRebootRequired= );

To view, visit change 1673. To unsubscri= be, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I04e35928244e6ecda8c58285a81= 2516662b50742
Gerrit-Change-Number: 1673
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --T6hg9l00DIc=--