From: "MaxF (Code Review)" Date: Wed, 18 Oct 2023 17:02:51 +0000 In-Reply-To: References: Reply-To: max@...2606..., 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="LrjcrRw06B8="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Add support for mbedtls 3.X.Y List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: flichtenheld , plaisthos , openvpn-devel --LrjcrRw06B8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. MaxF has posted comments on this change. ( http://gerrit.openvpn.net/c/open= vpn/+/370?usp=3Demail ) Change subject: Add support for mbedtls 3.X.Y ...................................................................... Patch Set 2: (11 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/370/comment/1e1bd1ee_e11801b6 : PS1, Line 28: This commit breaks compatibility for mbed TLS version 2.x.y. A > Would you prefer to put the two commits together into one? [=E2=80=A6] Done File src/openvpn/crypto_mbedtls.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/008f3995_73f1ae0c : PS1, Line 174: if (info && name > By accident. [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/66051a9c_642a1e63 : PS1, Line 423: int key_bytelen =3D mbedtls_cipher_info_get_key_bitlen(c= ipher)/8; > That function seems to return size_t, so should change to correct type. [= =E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/c10ad802_99af1817 : PS1, Line 459: return mbedtls_cipher_info_get_key_bitlen(cipher_kt)/8; > returns size_t Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/be1a8941_5596cf61 : PS1, Line 471: return mbedtls_cipher_info_get_iv_size(cipher_kt); > returns size_t Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/9ae7a2af_718cafbf : PS1, Line 482: return mbedtls_cipher_info_get_block_size(cipher_kt); > returns size_t Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/99ffebe4_f1f1bd12 : PS1, Line 575: int key_len =3D mbedtls_cipher_info_get_key_bitlen(kt)/8; > returns size_t Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/caa37eb7_96175d1a : PS1, Line 624: return mbedtls_cipher_get_cipher_mode(ctx); > returns mbedtls_cipher_mode_t Done http://gerrit.openvpn.net/c/openvpn/+/370/comment/d4b69ec4_32c46882 : PS1, Line 873: return mbedtls_md_get_size(mbedtls_md_info_from_ctx(ctx)= ); > returns unsigned char, but since this fits completely into int, this is f= ine. Done File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/d0411b3f_dc08e26f : PS1, Line 9049: #endif > Please use #else here so that static analysis doesn't complain about unre= achable code. Done File src/openvpn/ssl_mbedtls.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/3c48b929_e7bfd684 : PS1, Line 67: #ifndef HAVE_CTR_DRBG_UPDATE_RET > We discussed in the community meeting today that support for older versio= ns still makes sense. [=E2=80=A6] Actually, it can go, but I now need a different compatibility function... very old mbedtls: ..._update() has no return value old mbedtls: ..._update() deprecated, ..._update_ret() has return value current: ..._update() has return value, ..._update_ret() doesn't exist -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/370?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: I445a93e84dc54b865b757038d22318ac427fce96 Gerrit-Change-Number: 370 Gerrit-PatchSet: 2 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Wed, 18 Oct 2023 17:02:51 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: flichtenheld Comment-In-Reply-To: MaxF Gerrit-MessageType: comment --LrjcrRw06B8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

View C= hange

11 comments:

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I445a93e84dc54b865b757038d22= 318ac427fce96
Gerrit-Change-Number: 370
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: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Wed, 18 Oct 2023 17:02:51= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
Comment-In-Reply-To: MaxF <max@...2606...&g= t;
Gerrit-MessageType: comment
--LrjcrRw06B8=--