From 32552ee0ed78fd76b8c8524280d3d07d9f3d1ab7 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sat, 9 Mar 2024 16:52:28 +0100 Subject: [PATCH] fix: remove openssl deprecated code --- httpd.c | 3 +-- lib/ws.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/httpd.c b/httpd.c index 70b0343..35d31de 100644 --- a/httpd.c +++ b/httpd.c @@ -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(); diff --git a/lib/ws.c b/lib/ws.c index f0c1cbf..2338628 100644 --- a/lib/ws.c +++ b/lib/ws.c @@ -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();