mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
690d8bddce
commit
57ced95c07
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue