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

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

commit 57ced95c07992aec30618599e88f8e8835c258ba
Author: makejian <[email protected]>
AuthorDate: Fri Oct 10 15:08:23 2025 +0800

    crypto/openssl-wrapper: align SSL_CTX_new declaration with OpenSSL
    
    Remove the extra rngctx parameter from SSL_CTX_new() to match
    the standard OpenSSL API signature:
      SSL_CTX *SSL_CTX_new(const SSL_METHOD *method)
    
    This improves compatibility with code written for OpenSSL.
    
    Signed-off-by: makejian <[email protected]>
---
 crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h | 2 +-
 crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h 
b/crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h
index 436354882..d9b2298b9 100644
--- a/crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h
+++ b/crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h
@@ -251,7 +251,7 @@ int SSL_get_error(const SSL *ssl, int ret_code);
 
 OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);
 
-SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...);
+SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
 
 void SSL_CTX_free(SSL_CTX *ctx);
 
diff --git a/crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c 
b/crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c
index 4e7bf0968..b240d38d7 100644
--- a/crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c
+++ b/crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c
@@ -260,7 +260,7 @@ int SSL_get_error(const SSL *ssl, int ret_code)
   return ret;
 }
 
-SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...)
+SSL_CTX *SSL_CTX_new(const SSL_METHOD *method)
 {
   SSL_CTX *ctx;
   CERT *cert;

Reply via email to