Opened 4 years ago

Last modified 4 years ago

#1941 closed defect

Deprecated function in ngx_event_openssl.c when compiled with LibreSSL — at Version 2

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@…)

Hi,

It appears that ERR_peek_error_line_data has been deprecated in favor of ERR_peek_error_all in LibreSSL 3.0.2

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,
 ^

as per LibreSSL 3.0.2's openssl/err.h:

unsigned long ERR_peek_error_all(const char **file, int *line,
                                 const char **func,
                                 const char **data, int *flags);
DEPRECATEDIN_3(unsigned long ERR_peek_error_line_data(const char **file, int *line, const char **data, int *flags))

Change History (2)

comment:1 by Sergey Kandaurov, 4 years 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@…, 4 years ago

Description: modified (diff)
Resolution: invalid
Status: closedreopened
Last edited 4 years ago by m0rb@… (previous) (diff)
Note: See TracTickets for help on using tickets.