Opened 5 years ago
Last modified 5 years ago
#1941 closed defect
Deprecated function in ngx_event_openssl.c when compiled with LibreSSL — at Initial Version
Reported by: | 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
Hi,
It appears that ERR_peek_error_line_data has been deprecated in favor of ERR_peek_error_all
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'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))
Note:
See TracTickets
for help on using tickets.