]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix build with mbedtls w/o SSL renegotiation support
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Mon, 12 Apr 2021 17:46:17 +0000 (19:46 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 13 Apr 2021 05:56:10 +0000 (07:56 +0200)
commite4bd17c86e01aaf6f809d9ea355419c86c4defdc
treece2d29b95db530d70909330015857736b55e4284
parent3fbeeda5cd3cbd0cbb4c039b469685e2a6254daf
Fix build with mbedtls w/o SSL renegotiation support

In mbedtls, support for SSL renegotiation can be disabled at
compile-time. However, OpenVPN cannot be built with such a library
because it calls mbedtls_ssl_conf_renegotiation() to disable this
feature at runtime. This function doesn't exist when mbedtls was built
without support for SSL renegotiation.

This commit fixes the build by ifdef'ing out the function call when
mbedtls was built without support for SSL renegotiation.

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <E1lW0eX-00012w-9n@sfs-ml-1.v29.lw.sourceforge.com>
URL: https://www.mail-archive.com/search?l=mid&q=E1lW0eX-00012w-9n@sfs-ml-1.v29.lw.sourceforge.com
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_mbedtls.c