Skip to content

Commit 0a61561

Browse files
committed
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>
1 parent 63c72d3 commit 0a61561

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ int SSL_get_error(const SSL *ssl, int ret_code);
251251

252252
OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);
253253

254-
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...);
254+
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
255255

256256
void SSL_CTX_free(SSL_CTX *ctx);
257257

crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int SSL_get_error(const SSL *ssl, int ret_code)
260260
return ret;
261261
}
262262

263-
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...)
263+
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method)
264264
{
265265
SSL_CTX *ctx;
266266
CERT *cert;

0 commit comments

Comments
 (0)