From: "flichtenheld (Code Review)" Date: Wed, 11 Mar 2026 10:47:30 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <7fc9a3bf2bb77758b06011f2e644b1856bd5ba45-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="K1rIeZ0r+LI="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: crypto: Change cipher_kt_*_size to return unsigned instead of int List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , openvpn-devel --K1rIeZ0r+LI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. flichtenheld has posted comments on this change by flichtenheld. ( http://g= errit.openvpn.net/c/openvpn/+/1508?usp=3Demail ) Change subject: crypto: Change cipher_kt_*_size to return unsigned instead = of int ...................................................................... Patch Set 7: (4 comments) Patchset: PS6: > Could we make it just unsigned int instead? Using a size_t for something = that is not really somethin [=E2=80=A6] Done File src/openvpn/crypto.c: http://gerrit.openvpn.net/c/openvpn/+/1508/comment/4868ae72_9464a4d3?usp=3D= email : PS6, Line 91: const unsigned int iv_len =3D cipher_ctx_iv_length(ct= x->cipher); > Shouldn't this trigger a warning because we are putting a 8 byte int into= a 4 byte int Acknowledged File src/openvpn/crypto_backend.h: http://gerrit.openvpn.net/c/openvpn/+/1508/comment/70af9e9e_335e1b00?usp=3D= email : PS6, Line 284: size_t cipher_kt_tag_size(const char *ciphername); > I would like to have some more consistency here. [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/1508/comment/36f5a73f_70322dfd?usp=3D= email : PS6, Line 379: unsigned int cipher_ctx_block_size(const cipher_ctx_t *ctx); > This is an unsigned int while the non context uses a different return typ= e of size_t Done -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1508?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: I1bc576c4c7ffacbb9300608d98b06b22f2475fd9 Gerrit-Change-Number: 1508 Gerrit-PatchSet: 7 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Comment-Date: Wed, 11 Mar 2026 10:47:30 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: plaisthos --K1rIeZ0r+LI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

View = Change

4 comments:

  • Patchset:

    • Patch Set #6:

      Cou= ld we make it just unsigned int instead? Using a size_t for something that = is not really somethin [=E2=80=A6]

      Done

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

    • Patch Set #6, = Line 91: const = unsigned int iv_len =3D cipher_ctx_iv_length(ctx->cipher);

      =

      Shouldn't this trigger a warning because we are putting a 8 by= te int into a 4 byte int

      Acknowledged

  • File src/openvpn/crypto_backend.h:

    • Patch Se= t #6, Line 284: size_t = cipher_kt_tag_size(const char *ciphername);

      I would = like to have some more consistency here. [=E2=80=A6]

      Done<= /p>

    • Patch Set #6, Line 379: unsigned int cipher_ctx_block_size(const cip= her_ctx_t *ctx);

      This is an unsigned int while the no= n context uses a different return type of size_t

      Done

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

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1bc576c4c7ffacbb9300608d98b= 06b22f2475fd9
Gerrit-Change-Number: 1508
Gerrit-PatchSet: 7
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...>
Gerrit-Comment-Date: Wed, 11 Mar 2026 10:47:30= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
= --K1rIeZ0r+LI=--