From 384c52e6be5463e68662581dc94247fb40a18aa0 Mon Sep 17 00:00:00 2001 From: William Marlow Date: Thu, 23 Jun 2022 23:06:14 +0100 Subject: Initial Mbed-TLS 3 support to get the GitHub Actions working again mingw has upgraded to Mbed-TLS 3.1.0, so all the mingw tests that need Mbed-TLS currently don't work. v2: add missing mbedtls/version.h into test/regress_mbedtls.c v3: suppress #warning "Including compat-2.x.h is deprecated" for mbedtls/compat-2.x.h --- bufferevent_mbedtls.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bufferevent_mbedtls.c') diff --git a/bufferevent_mbedtls.c b/bufferevent_mbedtls.c index f42da2ae..ca96f723 100644 --- a/bufferevent_mbedtls.c +++ b/bufferevent_mbedtls.c @@ -24,8 +24,15 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +/* Mbed-TLS 3.x does not currently expose a function to retrieve + the bio parameters from the SSL object. When the above issue has been + fixed, remove the MBEDTLS_ALLOW_PRIVATE_ACCESS define and use the + appropriate getter function in bufferevent_mbedtls_socket_new rather than + accessing the struct fields directly. */ +#define MBEDTLS_ALLOW_PRIVATE_ACCESS #include "mbedtls-compat.h" -#include +#include #include #include -- cgit v1.2.1