Skip to content

Commit

Permalink
fix: remove openssl deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsang committed Mar 9, 2024
1 parent 375989a commit 32552ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 32552ee

Please sign in to comment.