#1941 closed defect (invalid)

Deprecated function in ngx_event_openssl.c when compiled with LibreSSL

Reported by: m0rb@… Owned by:
Priority: trivial Milestone:
Component: documentation Version: 1.17.x
Keywords: Cc:
uname -a: Linux xxx 4.15.0-xxx #74-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
nginx -V: --with-pcre --with-http_ssl_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_geoip_module --with-http_stub_status
_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module --with-http_v2_module --with-http_image_filter_module --add-module=./echo-nginx-module --with-http_dav_module

Description (last modified by m0rb@…)

Change History (5)

comment:1 by Sergey Kandaurov, 19 months ago

Resolution: invalid
Status: newclosed

Make sure there are no 3rd party modules. If there are any, please reproduce the problem without any 3rd party modules.

Anyway, there's no such deprecations in the released versions of LibreSSL, closing as invalid.

comment:2 by m0rb@…, 19 months ago

Description: modified (diff)
Resolution: invalid
Status: closedreopened

It was indeed deprecated in release 3.0.2; you may want to double check.
( Pardon my mislabelling of component; I can't retarget that. )

Configured with only distributed modules:

$ ./configure --with-pcre --with-http_ssl_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_geoip_module --with-http_stub_status_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module --with-http_v2_module --with-http_image_filter_module --with-http_dav_module

--- make ---

src/event/ngx_event_openssl.c: In function ‘ngx_ssl_error’:
src/event/ngx_event_openssl.c:3039:13: error: ‘ERR_peek_error_line_data’ is deprecated [-Werror=deprecated-declarations]
             n = ERR_peek_error_line_data(NULL, NULL, &data, &flags);

In file included from /usr/local/include/openssl/opensslconf.h:126:0,
                 from /usr/local/include/openssl/macros.h:10,
                 from /usr/local/include/openssl/ssl.h:16,
                 from src/event/ngx_event_openssl.h:15,
                 from src/core/ngx_core.h:84,
                 from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/err.h:296:1: note: declared here
 DEPRECATEDIN_3(unsigned long ERR_peek_error_line_data(const char **file,
cc1: all warnings being treated as errors
objs/Makefile:932: recipe for target 'objs/src/event/ngx_event_openssl.o' failed
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/build/nginx-1.17.9'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

Version 0, edited 19 months ago by m0rb@… (next)

comment:3 by m0rb@…, 19 months ago

disregard and reclose please

comment:4 by m0rb@…, 19 months ago

Description: modified (diff)

comment:5 by Sergey Kandaurov, 19 months ago

Resolution: invalid
Status: reopenedclosed
Note: See TracTickets for help on using tickets.