From: "flichtenheld (Code Review)" Date: Sun, 26 Oct 2025 21:16:40 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, max@...2606... Message-ID: <4dec1ccbd782231f8acc8f889d4eb61898de4063-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="+SJiXlh+2qE="; 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: plaisthos , openvpn-devel --+SJiXlh+2qE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: MaxF, plaisthos. flichtenheld has posted comments on this change by MaxF. ( http://gerrit.op= envpn.net/c/openvpn/+/1304?usp=3Demail ) Change subject: Add option to check tls-crypt-v2 key timestamps ...................................................................... Patch Set 2: Code-Review-2 (1 comment) File src/openvpn/tls_crypt.c: http://gerrit.openvpn.net/c/openvpn/+/1304/comment/a2d3dd24_9363c859?usp=3D= email : PS2, Line 679: return tls_crypt_v2_check_client_key_age(ctx, opt->t= ls_crypt_v2_max_age); that is logically wrong. You skip the verify_metadata check below unconditi= onally, but can only that on failure. You can just copy the if from below s= ince only the last check can do it this way. -- 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: 2 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: MaxF Gerrit-Comment-Date: Sun, 26 Oct 2025 21:16:40 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --+SJiXlh+2qE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: MaxF, plaisthos.

Patch set 2:Code-Review -2=

V= iew Change

1 comment:

  • File src/openvpn/tls_crypt.c:

    • Patch S= et #2, Line 679: = return tls_crypt_v2_check_client_key_age(ctx, opt->tls_crypt_v2_max_ag= e);

      that is logically wrong. You skip the verify_metadata check = below unconditionally, but can only that on failure. You can just copy the = if from below since only the last check can do it this way.

To view, visit change 1304. To unsubscribe, 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: 2
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: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: MaxF <max@...2606...> =
Gerrit-Comment-Date: Sun, 26 Oct 2025 21:16:40= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --+SJiXlh+2qE=--