From 9ba1504d01243b2076d8a085196f1b3cd73e365c Mon Sep 17 00:00:00 2001 From: Seo Suchan Date: Tue, 7 May 2024 14:20:02 +0900 Subject: [PATCH] mbedtls: fix compile on mbedtls 3.6+ they moved mbedtls_x509_get_name into interal zone. Signed-off-by: Seo Suchan --- lib/tls/mbedtls/private-lib-tls-mbedtls.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tls/mbedtls/private-lib-tls-mbedtls.h b/lib/tls/mbedtls/private-lib-tls-mbedtls.h index 162d972680..cd368f1974 100644 --- a/lib/tls/mbedtls/private-lib-tls-mbedtls.h +++ b/lib/tls/mbedtls/private-lib-tls-mbedtls.h @@ -57,3 +57,9 @@ lws_tls_mbedtls_cert_info(mbedtls_x509_crt *x509, enum lws_tls_cert_info type, int lws_x509_get_crt_ext(mbedtls_x509_crt *crt, mbedtls_x509_buf *skid, lws_mbedtls_x509_authority *akid); + +#if (MBEDTLS_VERSION_MAJOR == 3) && (MBEDTLS_VERSION_MINOR >= 6) + int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, + mbedtls_x509_name *cur); +#endif +