From: "plaisthos (Code Review)"
Date: Tue, 10 Mar 2026 10:51:31 +0000
In-Reply-To:
References:
Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net,
frank@...2641...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="YNYcDFonkEM="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: crypto: Change
cipher_kt_*_size to return size_t instead of int
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: flichtenheld
Cc: openvpn-devel
--YNYcDFonkEM=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change by flichtenheld. ( http://gerr=
it.openvpn.net/c/openvpn/+/1508?usp=3Demail )
Change subject: crypto: Change cipher_kt_*_size to return size_t instead of=
int
......................................................................
Patch Set 6: Code-Review-1
(3 comments)
File src/openvpn/crypto.c:
http://gerrit.openvpn.net/c/openvpn/+/1508/comment/8b0e13d7_3c7a3f09?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
File src/openvpn/crypto_backend.h:
http://gerrit.openvpn.net/c/openvpn/+/1508/comment/c62f107f_bb65928c?usp=3D=
email :
PS6, Line 284: size_t cipher_kt_tag_size(const char *ciphername);
I would like to have some more consistency here. We are making cipher_ctx_i=
v_length an unsigned int but this a size_t
http://gerrit.openvpn.net/c/openvpn/+/1508/comment/4d9f4906_47ca6c0c?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 type =
of size_t
--
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: 6
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Tue, 10 Mar 2026 10:51:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
--YNYcDFonkEM=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld.
Patch set 6:Code-Review -1=
V=
iew Change
3 comments:
Patch Set #6, Line 284: size_t cipher_kt_tag_size(const char *ciphe=
rname);
I would like to have some more consistency here. We are =
making cipher_ctx_iv_length an unsigned int but this a size_t
<=
a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1508/comment/4d9f4906_47ca6=
c0c?usp=3Demail">Patch Set #6, Line 379: unsigned int cipher_ctx_block_size(const cipher_ctx_t *ct=
x);
This is an unsigned int while the non context uses a differe=
nt return type of size_t
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: 6
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Comment-Date: Tue, 10 Mar 2026 10:51:31=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
=
--YNYcDFonkEM=--