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 eabb202
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/libwebsockets/patches/100-import_mbedtls_internal.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- 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_c
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 eabb202

Please sign in to comment.