Skip to content

Commit 9ba1504

Browse files
orangepizzalws-team
authored andcommitted
mbedtls: fix compile on mbedtls 3.6+
they moved mbedtls_x509_get_name into interal zone. Signed-off-by: Seo Suchan <tjtncks@gmail.com>
1 parent e820283 commit 9ba1504

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/tls/mbedtls/private-lib-tls-mbedtls.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,9 @@ lws_tls_mbedtls_cert_info(mbedtls_x509_crt *x509, enum lws_tls_cert_info type,
5757
int
5858
lws_x509_get_crt_ext(mbedtls_x509_crt *crt, mbedtls_x509_buf *skid,
5959
lws_mbedtls_x509_authority *akid);
60+
61+
#if (MBEDTLS_VERSION_MAJOR == 3) && (MBEDTLS_VERSION_MINOR >= 6)
62+
int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
63+
mbedtls_x509_name *cur);
64+
#endif
65+

0 commit comments

Comments
 (0)