The Wayback Machine - https://web.archive.org/web/20241208043018/https://github.com/nginx/unit/issues/597
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL 3.0 Compatibility #597

Closed
remicollet opened this issue Nov 18, 2021 · 1 comment
Closed

OpenSSL 3.0 Compatibility #597

remicollet opened this issue Nov 18, 2021 · 1 comment

Comments

@remicollet
Copy link
Contributor

remicollet commented Nov 18, 2021

AS this will be the default version in Fedora 36 and RHEL 9 (and Centos and other clones)

For now:

$ make
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g   -I src -I build -I/opt/openssl/include  \
                      \
                     \
-o build/src/nxt_openssl.o \
-MMD -MF build/src/nxt_openssl.dep -MT build/src/nxt_openssl.o \
src/nxt_openssl.c
src/nxt_openssl.c: In function 'nxt_tls_ticket_key_callback':
src/nxt_openssl.c:820:5: error: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  820 |     if (HMAC_Init_ex(hctx, ticket[i].hmac_key, ticket[i].size, digest, NULL)
      |     ^~
In file included from /opt/openssl/include/openssl/ssl.h:37,
                 from src/nxt_openssl.c:9:
/opt/openssl/include/openssl/hmac.h:43:27: note: declared here
   43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
      |                           ^~~~~~~~~~~~
src/nxt_openssl.c: In function 'nxt_openssl_copy_error':
src/nxt_openssl.c:1784:9: error: 'ERR_get_error_line_data' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1784 |         err = ERR_get_error_line_data(NULL, NULL, &data, &flags);
      |         ^~~
In file included from src/nxt_openssl.c:11:
/opt/openssl/include/openssl/err.h:413:15: note: declared here
  413 | unsigned long ERR_get_error_line_data(const char **file, int *line,
      |               ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [build/Makefile:1375: build/src/nxt_openssl.o] Error 1

@ac000
Copy link
Member

ac000 commented May 12, 2022

This has been handled in commit 5665838

@ac000 ac000 closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants