mirror of
https://github.com/lxsang/ant-http
synced 2024-11-18 01:08:21 +01:00
fix: remove openssl deprecated code
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
This commit is contained in:
parent
375989acbe
commit
32552ee0ed
3
httpd.c
3
httpd.c
@ -151,9 +151,8 @@ static void stop_serve(int dummy)
|
|||||||
antd_scheduler_destroy(scheduler);
|
antd_scheduler_destroy(scheduler);
|
||||||
unload_all_plugin();
|
unload_all_plugin();
|
||||||
#ifdef USE_OPENSSL
|
#ifdef USE_OPENSSL
|
||||||
FIPS_mode_set(0);
|
// DEPRECATED FIPS_mode_set(0);
|
||||||
SSL_CTX_free(ctx);
|
SSL_CTX_free(ctx);
|
||||||
FIPS_mode_set(0);
|
|
||||||
// DEPRECATED: CONF_modules_unload(1);
|
// DEPRECATED: CONF_modules_unload(1);
|
||||||
EVP_cleanup();
|
EVP_cleanup();
|
||||||
EVP_PBE_cleanup();
|
EVP_PBE_cleanup();
|
||||||
|
2
lib/ws.c
2
lib/ws.c
@ -356,7 +356,7 @@ void ws_client_close(ws_client_t *wsclient)
|
|||||||
if (wsclient->ssl_ctx)
|
if (wsclient->ssl_ctx)
|
||||||
{
|
{
|
||||||
SSL_CTX_free(wsclient->ssl_ctx);
|
SSL_CTX_free(wsclient->ssl_ctx);
|
||||||
FIPS_mode_set(0);
|
// DEPRECATED: FIPS_mode_set(0);
|
||||||
// DEPRECATED: CONF_modules_unload(1);
|
// DEPRECATED: CONF_modules_unload(1);
|
||||||
EVP_cleanup();
|
EVP_cleanup();
|
||||||
EVP_PBE_cleanup();
|
EVP_PBE_cleanup();
|
||||||
|
Loading…
Reference in New Issue
Block a user