From: "flichtenheld (Code Review)" Date: Wed, 18 Oct 2023 10:44:43 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, max@...2606... Message-ID: <1df1c41b6aaa6c199c9709cfdca746f795ecef0c-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="SKJwvdvCTxg="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Add support for mbedtls 3.X.Y List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: MaxF Cc: plaisthos , openvpn-devel --SKJwvdvCTxg= 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. ( http://gerrit.openvpn.ne= t/c/openvpn/+/370?usp=3Demail ) Change subject: Add support for mbedtls 3.X.Y ...................................................................... Patch Set 1: Code-Review-1 (12 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/370/comment/aab50ccd_b3f897e3 : PS1, Line 28: This commit breaks compatibility for mbed TLS version 2.x.y. A That makes me unhappy. Can we have the changes in an order so that existing= builds do not get broken? Patchset: PS1: Lots of nitpicks, mostly File src/openvpn/crypto_mbedtls.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/01666ef9_bb9a9c08 : PS1, Line 174: if (info && name why is the cipher_kt_insecure check missing here? http://gerrit.openvpn.net/c/openvpn/+/370/comment/2aade4a0_473c3942 : 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. Can= probably mark this as const. http://gerrit.openvpn.net/c/openvpn/+/370/comment/92cbb001_0e886286 : PS1, Line 459: return mbedtls_cipher_info_get_key_bitlen(cipher_kt)/8; returns size_t http://gerrit.openvpn.net/c/openvpn/+/370/comment/5c87ca0d_15ec38d9 : PS1, Line 471: return mbedtls_cipher_info_get_iv_size(cipher_kt); returns size_t http://gerrit.openvpn.net/c/openvpn/+/370/comment/8a8454de_c71c3294 : PS1, Line 482: return mbedtls_cipher_info_get_block_size(cipher_kt); returns size_t http://gerrit.openvpn.net/c/openvpn/+/370/comment/9ff5f0a4_2587b778 : PS1, Line 575: int key_len =3D mbedtls_cipher_info_get_key_bitlen(kt)/8; returns size_t http://gerrit.openvpn.net/c/openvpn/+/370/comment/64a7ebc5_376b0cd8 : PS1, Line 624: return mbedtls_cipher_get_cipher_mode(ctx); returns mbedtls_cipher_mode_t http://gerrit.openvpn.net/c/openvpn/+/370/comment/a83a2860_08071efc : 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 fin= e. File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/6090c0ad_d2519496 : PS1, Line 9049: #endif Please use #else here so that static analysis doesn't complain about unreac= hable code. File src/openvpn/ssl_mbedtls.c: http://gerrit.openvpn.net/c/openvpn/+/370/comment/c7cb421f_7d64647e : PS1, Line 67: #ifndef HAVE_CTR_DRBG_UPDATE_RET Since you remove support for mbedtls < 2.16, this code can be removed? -- 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: 1 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: MaxF Gerrit-Comment-Date: Wed, 18 Oct 2023 10:44:43 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --SKJwvdvCTxg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: MaxF, plaisthos.

Patch set 1:Code-Review -1=

Vi= ew Change

12 comments:

To view, visit = change 37= 0. 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: 1
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: Wed, 18 Oct 2023 10:44:43= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--SKJwvdvCTxg=--