From: "MaxF (Code Review)" Date: Tue, 3 Dec 2024 13:48:12 +0000 In-Reply-To: References: Reply-To: max@...2606..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <20543d92afbd4416d1dc6c55967ec0fd946d56db-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="/wf3Y3laoOA="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Trigger renegotiation of data key if getting close to the AEAD usage ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , cron2 , openvpn-devel --/wf3Y3laoOA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. MaxF has posted comments on this change. ( http://gerrit.openvpn.net/c/open= vpn/+/796?usp=3Demail ) Change subject: Trigger renegotiation of data key if getting close to the A= EAD usage limit ...................................................................... Patch Set 10: Code-Review-1 (4 comments) Patchset: PS10: I've pointed out a few more places where you could use uint. Let me know if= this is excessive nitpicking. File src/openvpn/crypto.c: http://gerrit.openvpn.net/c/openvpn/+/796/comment/56ca9914_0cae7c14 : PS10, Line 355: int64_t This could be uint File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/796/comment/ca8aab0e_b7f91c98 : PS10, Line 134: static int64_t : tls_get_limit_aead(const char *ciphername) : { : int64_t limit =3D cipher_get_aead_limits(ciphername); : : if (limit =3D=3D 0) : { : return 0; : } : : /* set limit to 7/8 of the limit so the renogiation can= succeed before : * we go over the limit */ : limit =3D limit * 7/8; : : msg(D_SHOW_KEYS, "Note: AEAD cipher %s will be limited = to a sum of %" : PRIi64 " for block and packets before renegotiation= ", : ciphername, limit); : return limit; : } This function could return uint File src/openvpn/ssl_common.h: http://gerrit.openvpn.net/c/openvpn/+/796/comment/166427ee_9749af9d : PS10, Line 338: int64_t aead_usage_limit; This could be uint -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/796?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: I057f007577f10c6ac917ee4620ee3d2559187dc7 Gerrit-Change-Number: 796 Gerrit-PatchSet: 10 Gerrit-Owner: plaisthos Gerrit-Reviewer: MaxF Gerrit-Reviewer: flichtenheld Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 03 Dec 2024 13:48:12 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --/wf3Y3laoOA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 10:Code-Review -1

V= iew Change

4 comments:

  • Patchset:

    • Patch Set #10:

      I've pointed out a few more places wher= e you could use uint. Let me know if this is excessive nitpicking.

    • =
  • File src/openvpn/crypto.c= :

  • File src/op= envpn/ssl.c:

    • Patch = Set #10, Line 134:

      static int64_t
      tls_get_limit_aead(co= nst char *ciphername)
      {
      int64_t limit =3D cipher_get_aead_limits(= ciphername);

      if (limit =3D=3D 0)
      {
      return 0; }

      /* set limit to 7/8 of the limit so the renogiation can = succeed before
      * we go over the limit */
      limit =3D limit * 7= /8;

      msg(D_SHOW_KEYS, "Note: AEAD cipher %s will be limited = to a sum of %"
      PRIi64 " for block and packets before r= enegotiation",
      ciphername, limit);
      return limit;
      = }

      This function could return uint

  • File src/openvpn/ssl_common.h:

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

<= /div>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I057f007577f10c6ac917ee4620e= e3d2559187dc7
Gerrit-Change-Number: 796
Gerrit-PatchSet: 10
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: MaxF <max@...2606...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 03 Dec 2024 13:48:12= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--/wf3Y3laoOA=--