diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2022-05-12 12:04:47 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2022-05-12 12:04:47 +0400 |
commit | 5665838b680cdc06d6eb83107e4d46db6cfae0c4 (patch) | |
tree | ca1827461a69a13d13f2ef75066001c047163496 | |
parent | 1bffba6d1e798825a00e0b754a62b5b3961a7363 (diff) | |
download | unit-5665838b680cdc06d6eb83107e4d46db6cfae0c4.tar.gz unit-5665838b680cdc06d6eb83107e4d46db6cfae0c4.tar.bz2 |
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.
-rw-r--r-- | src/nxt_openssl.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <nxt_main.h> #include <nxt_conf.h> + +#define OPENSSL_SUPPRESS_DEPRECATED + #include <openssl/ssl.h> #include <openssl/conf.h> #include <openssl/err.h> |