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 <makejian@xiaomi.com>
This commit is contained in:
makejian 2025-10-10 15:08:23 +08:00 committed by Xiang Xiao
parent 690d8bddce
commit 57ced95c07
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;