From: "plaisthos (Code Review)" Date: Mon, 27 Oct 2025 16:19:32 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., max@...2606... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="aidJ97eJkvg="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Add option to check tls-crypt-v2 key timestamps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: MaxF Cc: flichtenheld , openvpn-devel --aidJ97eJkvg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: MaxF. plaisthos has posted comments on this change by MaxF. ( http://gerrit.openv= pn.net/c/openvpn/+/1304?usp=3Demail ) Change subject: Add option to check tls-crypt-v2 key timestamps ...................................................................... Patch Set 4: (4 comments) Patchset: PS4: Looks good but I would like a few minor issues to be addressed File doc/man-sections/tls-options.rst: http://gerrit.openvpn.net/c/openvpn/+/1304/comment/17d09927_5a722c44?usp=3D= email : PS4, Line 573: no timestamp. should add in the description what happen if tls-crypt-v2 client keys are u= sed that don't use the timestamp. File src/openvpn/tls_crypt.c: http://gerrit.openvpn.net/c/openvpn/+/1304/comment/5baff829_139564bf?usp=3D= email : PS4, Line 537: msg(M_WARN, "ERROR: Client key doesn't have a timest= amp."); I would go for the bit more formal form here and use "does not" instead of = the short form "doesn't" http://gerrit.openvpn.net/c/openvpn/+/1304/comment/7d9d8afb_144c9475?usp=3D= email : PS4, Line 541: memcpy(×tamp, metadata + 1, sizeof(int64_t)); I think we should add a length check here to ensure that the metadata is lo= ng enough. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1304?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I0579d18c784e2ac16973d5553992c28f281a0900 Gerrit-Change-Number: 1304 Gerrit-PatchSet: 4 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: MaxF Gerrit-Comment-Date: Mon, 27 Oct 2025 16:19:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --aidJ97eJkvg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: MaxF.

View = Change

4 comments:

  • Patchset:

    • Patch Set #4:

      Looks good but= I would like a few minor issues to be addressed

  • File doc/man-sections/tls-options.rst:

    <= ul style=3D"list-style: none; padding: 0;">
  • Patch Set = #4, Line 573: no time= stamp.

    should add in the description what happen if tls-crypt-v2= client keys are used that don't use the timestamp.

<= li style=3D"margin: 0; padding: 0;">

File src/openvpn/tls_crypt.c:

  • Patch Set #4= , Line 537: msg= (M_WARN, "ERROR: Client key doesn't have a timestamp.");

    I would go for the bit more formal form here and use "does not&= quot; instead of the short form "doesn't"

  • Patch Set #4, Line 541: memcpy(&timestamp, metadata + 1, sizeof(int64_t));

    I think we should add a length check here to ensure that the metad= ata is long enough.

  • To view, visit change 1304. To un= subscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I0579d18c784e2ac16973d555399= 2c28f281a0900
    Gerrit-Change-Number: 1304
    Gerrit-PatchSet: 4
    Gerrit-Owner: MaxF <max@...2606...>
    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: MaxF <max@...2606...> =
    Gerrit-Comment-Date: Mon, 27 Oct 2025 16:19:32= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    = --aidJ97eJkvg=--