]> git.ipfire.org Git - thirdparty/openvpn.git/commit
mbedtls: do not define mbedtls_ctr_drbg_update_ret when not needed
authorAntonio Quartulli <a@unstable.cc>
Thu, 12 Aug 2021 08:53:00 +0000 (10:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 12 Aug 2021 11:01:38 +0000 (13:01 +0200)
commit2b9bbaadf44d4978c07abfdb5cce147c71cd9e8d
treed8e048917d5006d9f324e6bdea4284d83f274acf
parentb99fa3fd4fc41862354be709edb9877aae3e138c
mbedtls: do not define mbedtls_ctr_drbg_update_ret when not needed

The mbedtls_ctr_drbg_update_ret() function was backported to various
older branches, including 2.14 and 2.7.
To avoid 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 <maximilian.fillinger@foxcrypto.com>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Message-Id: <20210812085300.4738-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22734.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
src/openvpn/ssl_mbedtls.c