BUG/MINOR: tools: check libssl and libcrypto separately
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 17:47:19 +0000 (19:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:46:15 +0000 (09:46 +0200)
commit997ad155fed9d4dbfec504b611b7cf57dd889a11
tree269f02450088f34b297d92a0c3656e09c9f0c41a
parent9f53b7b41ac7bb8b415550ca626a635b2808cc3b
BUG/MINOR: tools: check libssl and libcrypto separately

The lib compatibility checks introduced in 2.8-dev6 with commit c3b297d5a
("MEDIUM: tools: further relax dlopen() checks too consider grouped
symbols") were partially incorrect in that they check at the same time
libcrypto and libssl. But if loading a library that only depends on
libcrypto, the ssl-only symbols will be missing and this might present
an inconsistency. This is what is observed on FreeBSD 13.1 when
libcrypto is being loaded, where it sees two symbols having disappeared.

The fix consists in splitting the checks for libcrypto and libssl.

No backport is needed, unless the patch above finally gets backported.
src/tools.c