Skip to content

Commit

Permalink
Libwebsockets: temp fix for mbedtls 3.6+
Browse files Browse the repository at this point in the history
3.6 removed mbedtls_x509_get_cert into private header, redefined it in resonable place to temperatly fix it

Signed-off-by: Seo Suchan <tjtncks@gmail.com>
  • Loading branch information
orangepizza committed May 3, 2024
1 parent 7157d5a commit c4a722b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libs/libwebsockets/patches/100-import_mbedtls_internal.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/tls/mbedtls/private-lib-tls-mbedtls.h b/lib/tls/mbedtls/private-lib-tls-mbedtls.h
index 162d9726..73f49c01 100644
--- a/lib/tls/mbedtls/private-lib-tls-mbedtls.h
+++ b/lib/tls/mbedtls/private-lib-tls-mbedtls.h
@@ -57,3 +57,8 @@ 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);
+
+/* redefine hidden mbedtls internal functions*/
+int
+mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
+ mbedtls_x509_name *cur);

0 comments on commit c4a722b

Please sign in to comment.