This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 47ffe7f7e72 tools/nxstyle: skip the OpenSSL-to-Mbed-TLS compatibility 
wrapper
47ffe7f7e72 is described below

commit 47ffe7f7e72d07d198f7e5a18dcf87108c34280b
Author: makejian <[email protected]>
AuthorDate: Tue Nov 24 19:25:07 2026 +0800

    tools/nxstyle: skip the OpenSSL-to-Mbed-TLS compatibility wrapper
    
    openssl_mbedtls_wrapper implements the OpenSSL API on top of Mbed TLS.
    The OpenSSL identifiers the wrapper must declare and call (X509_*,
    PKCS12_*, EVP_*, BIO_*, ...) are mixed case by definition, so the mixed
    case check cannot pass for that directory without breaking the very
    interface the layer exists to provide. Skip the directory through
    g_white_files, the same mechanism already used for vendor SDK
    compatibility code (phy62xx, gd32vw55x, lpc43xx SPIFI).
    
    Unblocks apache/nuttx-apps#4126, which syncs the wrapper with its
    evolution: the mixed case reports there are 446 pre-existing lines in
    the touched files plus the same OpenSSL API names in the added code.
    
    Signed-off-by: makejian <[email protected]>
---
 tools/nxstyle.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index 56cae997c30..84447555667 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -944,6 +944,14 @@ static const char *g_white_files[] =
   "gd32vw55x/gdwifi/gdwifi_newlib_compat.c",
   "gd32vw55x/gdble/gd32_ble.c",
 
+  /* Skip the OpenSSL-to-Mbed-TLS compatibility wrapper: it implements the
+   * OpenSSL API, whose identifiers (X509_*, PKCS12_*, EVP_*, BIO_*, ...)
+   * are mixed case by definition.  Ref:
+   * apps/crypto/openssl_mbedtls_wrapper
+   */
+
+  "openssl_mbedtls_wrapper/",
+
   /* Skip libcxx support header (C++ file, not NuttX style) */
 
   "from_chars_support.h",

Reply via email to