Open ydroneaud opened 2 years ago
The whole code looks like this: https://github.com/the-tcpdump-group/tcpdump/blob/9ff9f78db3cd17d3761fdc441ad58f1ab4917507/print-esp.c#L674-L687
Given that OpenSSL 1.0.2 is no longer supported except with paid support contracts (Release Strategy), is it worth still maintaining this #if
?
Also, the OpenSSL_add_all_algorithms man page, versions 1.1 and newer, reads:
HISTORY
The OpenSSL_add_all_algorithms(), OpenSSL_add_all_ciphers(), OpenSSL_add_all_digests(), and EVP_cleanup(), functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_crypto() and should not be used.
With OpenSSL 3.0, it's really up to the application to define
OPENSSL_API_COMPAT
, and when compiling tcpdump,OPENSSL_API_COMPAT
is not defined, thus the check inesp_init()
is incorrect:https://github.com/the-tcpdump-group/tcpdump/blob/9ff9f78db3cd17d3761fdc441ad58f1ab4917507/print-esp.c#L683
When compiled against OpenSSL 3.0.1 built with
--api=1.1.1
andno-deprecated
configuration options,OpenSSL_add_all_algorithms()
is not defined, and build fail: