From 5665838b680cdc06d6eb83107e4d46db6cfae0c4 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Thu, 12 May 2022 12:04:47 +0400 Subject: [PATCH] Using OPENSSL_SUPPRESS_DEPRECATED. The macro is used to suppress deprecation warnings with OpenSSL 3.0. Unlike OPENSSL_API_COMPAT, it works well with OpenSSL built with no-deprecated. In particular, it doesn't unhide various macros in OpenSSL includes, which are meant to be hidden under OPENSSL_NO_DEPRECATED. --- src/nxt_openssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nxt_openssl.c b/src/nxt_openssl.c index 59c58b2b..38cf652d 100644 --- a/src/nxt_openssl.c +++ b/src/nxt_openssl.c @@ -6,6 +6,9 @@ #include #include + +#define OPENSSL_SUPPRESS_DEPRECATED + #include #include #include