From bfbd80967a9977e22f32fdeb04927c1979bb196a Mon Sep 17 00:00:00 2001 From: Dmitry Potapov Date: Thu, 15 Sep 2022 13:26:38 +0300 Subject: [PATCH] openssl3: change deprecated warnings suppression --- include/libwebsockets.h | 4 ---- lib/core/private-lib-core.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libwebsockets.h b/include/libwebsockets.h index 0da17677f..87ff28088 100644 --- a/include/libwebsockets.h +++ b/include/libwebsockets.h @@ -47,10 +47,6 @@ extern "C" { #include -#if defined(LWS_SUPPRESS_DEPRECATED_API_WARNINGS) -#define OPENSSL_USE_DEPRECATED -#endif - /* place for one-shot opaque forward references */ typedef struct lws_context * lws_ctx_t; diff --git a/lib/core/private-lib-core.h b/lib/core/private-lib-core.h index b5610a402..f894f2deb 100644 --- a/lib/core/private-lib-core.h +++ b/lib/core/private-lib-core.h @@ -34,6 +34,10 @@ #define _GNU_SOURCE #endif +#if defined(LWS_SUPPRESS_DEPRECATED_API_WARNINGS) +#define OPENSSL_SUPPRESS_DEPRECATED +#endif + /* #if !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 200112L