References: From: Antonio Quartulli Message-ID: Date: Mon, 12 Apr 2021 21:21:30 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [Openvpn-devel] [PATCH] Fix build with mbedtls w/o SSL renegotiation support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Max Fillinger , openvpn-devel@lists.sourceforge.net Hi, On 12/04/2021 19:46, Max Fillinger wrote: > 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 Compile tested against mbedtls with and without this feature defined. Could see the error and it gets fixed when this patch is applied. By having a look at the mbedtls git history I could see this define exists since the library was under the polarssl namespace. Which means it is old enough for us to not worry about. Acked-by: Antonio Quartulli -- Antonio Quartulli