]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Replace deprecated mbedtls DRBG update function
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Tue, 10 Aug 2021 06:16:44 +0000 (08:16 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 11 Aug 2021 12:25:11 +0000 (14:25 +0200)
commitb99fa3fd4fc41862354be709edb9877aae3e138c
treeed04b51a90aeedfd9a33b934a4fb4a3cfd8d2df1
parent903e2cf5c1152834437c8d814ed17d0838552f72
Replace deprecated mbedtls DRBG update function

The function mbedtls_ctr_drbg_update is deprecated as of mbedtls 2.16
and is superseded by mbedtls_ctr_drbg_update_ret, which returns an error
code. This commit replaces the call to the deprecated function with the
new one and logs a warning in case of an error.

For older versions of mbedtls, we add a compatibility function that runs
mbedtls_ctr_drbg_update and returns 0.

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210810061644.20353-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22711.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_mbedtls.c