fix: remove openssl deprecated code
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2024-03-09 16:52:28 +01:00
parent 375989acbe
commit 32552ee0ed
2 changed files with 2 additions and 3 deletions

View File

@ -151,9 +151,8 @@ static void stop_serve(int dummy)
antd_scheduler_destroy(scheduler);
unload_all_plugin();
#ifdef USE_OPENSSL
FIPS_mode_set(0);
// DEPRECATED FIPS_mode_set(0);
SSL_CTX_free(ctx);
FIPS_mode_set(0);
// DEPRECATED: CONF_modules_unload(1);
EVP_cleanup();
EVP_PBE_cleanup();

View File

@ -356,7 +356,7 @@ void ws_client_close(ws_client_t *wsclient)
if (wsclient->ssl_ctx)
{
SSL_CTX_free(wsclient->ssl_ctx);
FIPS_mode_set(0);
// DEPRECATED: FIPS_mode_set(0);
// DEPRECATED: CONF_modules_unload(1);
EVP_cleanup();
EVP_PBE_cleanup();