[Openvpn-devel] [PATCH] mbedtls: do not define mbedtls_ctr_drbg_update_ret for mbedtls <2.15 and >=2.14.1

2021-08-12 Thread Antonio Quartulli
The mbedtls_ctr_drbg_update_ret() function was backported to the 2.14 branch of mbedtls since 2.14.1. For this reason, we must exclude the definition of our compat function for mbedtls >=2.14.1 but <2.15 Cc: Max Fillinger Signed-off-by: Antonio Quartulli --- Successfully compiled tested on mbed

Re: [Openvpn-devel] [PATCH] mbedtls: do not define mbedtls_ctr_drbg_update_ret for mbedtls <2.15 and >=2.14.1

2021-08-12 Thread Antonio Quartulli
Hi, On 12/08/2021 09:57, Antonio Quartulli wrote: > The mbedtls_ctr_drbg_update_ret() function was backported to the 2.14 > branch of mbedtls since 2.14.1. For this reason, we must exclude the > definition of our compat function for mbedtls >=2.14.1 but <2.15 > > Cc: Max Fillinger > Signed-off-b

[Openvpn-devel] [PATCH v2] mbedtls: do not define mbedtls_ctr_drbg_update_ret when not needed

2021-08-12 Thread Antonio Quartulli
The mbedtls_ctr_drbg_update_ret() function was backported to various older branches, including 2.14 and 2.7. To aqvoid making the if guard too complex, let's detect if this function exist at configure time. All versions not having this function, will use our compat code. Cc: Max Fillinger Signed-

Re: [Openvpn-devel] [PATCH v2] mbedtls: do not define mbedtls_ctr_drbg_update_ret when not needed

2021-08-12 Thread Max Fillinger
On 12/08/2021 10:53, Antonio Quartulli wrote: The mbedtls_ctr_drbg_update_ret() function was backported to various older branches, including 2.14 and 2.7. To aqvoid making the if guard too complex, let's detect if this function exist at configure time. All versions not having this function, will

[Openvpn-devel] [PATCH applied] Re: mbedtls: do not define mbedtls_ctr_drbg_update_ret when not needed

2021-08-12 Thread Gert Doering
Thanks :-) (verified on that slightly old NetBSD 8.1 buildslave, and on more current installations) Your patch has been applied to the master branch. commit 2b9bbaadf44d4978c07abfdb5cce147c71cd9e8d Author: Antonio Quartulli Date: Thu Aug 12 10:53:00 2021 +0200 mbedtls: do not define mbedt