Actions
Anonymous #780
openOpenssl 3.0
Start date:
2022-09-16
Due date:
% Done:
0%
Estimated time:
Patch Available:
Yes
Found in Versions:
Confirmed:
No
Security:
Help Needed:
Description
Trying to build with OpenSSL 3, it fails with:
gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wnull-dereference -Wstack-protector -Wtrampolines -Walloca -Wvla -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wtraditional-conversion -Wshift-overflow=2 -Wcast-qual -Wstringop-overflow=4 -Wconversion -Warith-conversion -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wformat-signedness -Wshadow -Wstrict-overflow=4 -Wundef -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wstack-usage=1000000 -Wcast-align=strict -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DPIC -fPIC -c -o libbip_a-connection.o `test -f 'connection.c' || echo './'`connection.c
connection.c: In function 'ctx_set_dh':
connection.c:1184:9: error: 'PEM_read_DHparams' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
1184 | dh = PEM_read_DHparams(f, NULL, NULL, NULL);
| ^~
In file included from connection.h:37,
from connection.c:18:
/usr/include/openssl/pem.h:469:1: note: declared here
469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
| ^~~~~~~~~~~~~~~~~~~
connection.c:1199:9: error: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
1199 | DH_free(dh);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from connection.h:35:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
With GCC12
Updated by Loïc Gomez 8 months ago
- Status changed from New to In Progress
- Assignee set to Loïc Gomez
- Priority changed from Normal to High
Updated by Loïc Gomez 8 months ago
- Target version set to 21
- Patch Available set to Yes
Actions