From: "cron2 (Code Review)" Date: Mon, 9 Sep 2024 14:30:15 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <1d2629aa59ce17c1aa638ba60f97f813524ba84f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="K//lRz/z/+U="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: dco-win: factor out getting dco version info own function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stipa Cc: plaisthos , flichtenheld , openvpn-devel --K//lRz/z/+U= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, stipa. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/733?usp=3Demail ) Change subject: dco-win: factor out getting dco version info own function ...................................................................... Patch Set 1: (5 comments) Patchset: PS1: Overall the factoring-out looks good, but there's one textual change that I= find to be "less clear now", and a few remarks. File src/openvpn/dco_win.c: http://gerrit.openvpn.net/c/openvpn/+/733/comment/728ea9f7_3e755e74 : PS1, Line 102: msg(D_DCO_DEBUG, "dco data_v3: %d", dco->supports_data_v= 3); I think keeping the "supports" here (=3D not changing the text) would ease = understanding of the logs. http://gerrit.openvpn.net/c/openvpn/+/733/comment/69aa1495_3d39dec2 : PS1, Line 474: ZeroMemory(&version, sizeof(version)); `CLEAR(version)` exists (if you change this line anyway). Or just zeroize on assign `OVPN_VERSION =3D {0}`? http://gerrit.openvpn.net/c/openvpn/+/733/comment/4fdb9c97_bc7702f6 : PS1, Line 481: return BSTR(&out); technically this does something else if no DCO driver can be found - the ol= d code returns "N/A", the new code returns "0.0.0". Is this intentional? http://gerrit.openvpn.net/c/openvpn/+/733/comment/bd3ba22f_ce91aaf0 : PS1, Line 562: dco_get_version(&version); see above wrt `CLEAR()` or `=3D {0}` -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/733?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: I8e8ddd35bd3cc3334faf7f57118d1892512ae9f7 Gerrit-Change-Number: 733 Gerrit-PatchSet: 1 Gerrit-Owner: stipa Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: stipa Gerrit-Comment-Date: Mon, 09 Sep 2024 14:30:15 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --K//lRz/z/+U= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos, stipa. <= /p>

View C= hange

5 comments:

    =
  • Patchset:

    • Patch Set #1:

      Overall the factoring-out looks good, but there&#= 39;s one textual change that I find to be "less clear now", and a= few remarks.

  • Fil= e src/openvpn/dco_win.c:

      Patch Set #1, Line 102: msg(D_DCO_DEBUG, "dco data_v3: %d", dco->supports_d= ata_v3);

      I think keeping the "supports" here (=3D not changing the text= ) would ease understanding of the logs.

    • Patch Set #1, Line= 474: ZeroMemory(&a= mp;version, sizeof(version));

      `CLEAR(version)` exists (if you change this line an= yway).

      Or jus= t zeroize on assign `OVPN_VERSION =3D {0}`?

    • Patch Set #1, = Line 481: return BS= TR(&out);

      technically this does something else if no DCO driver can be found = - the old code returns "N/A", the new code returns "0.0.0&qu= ot;. Is this intentional?

    • Patch Set #1, Line 562: dco_get_version(&versi= on);

      s= ee above wrt `CLEAR()` or `=3D {0}`

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8e8ddd35bd3cc3334faf7f57118= d1892512ae9f7
Gerrit-Change-Number: 733
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-Comment-Date: Mon, 09 Sep 2024 14:30:15= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--K//lRz/z/+U=--