Skip to content

Commit 9c897f6

Browse files
committed
OpenSSL_add_all_algorithms() is deprecated since OpenSSL 1.1.0, use it accordingly
OPENSSL_API_COMPAT is to be set by the module including OpenSSL header to request a certain API level compatibility, and starting with OpenSSL 3, it's no more defined by OpenSSL header to the default API level. OPENSSL_VERSION_NUMBER must be used instead. Fixes the-tcpdump-group#977 Signed-off-by: Yann Droneaud <[email protected]>
1 parent 9ff9f78 commit 9c897f6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

print-esp.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,7 @@ static void esp_print_decode_onesecret(netdissect_options *ndo, char *line,
674674
DIAG_OFF_DEPRECATION
675675
static void esp_init(netdissect_options *ndo _U_)
676676
{
677-
/*
678-
* 0.9.6 doesn't appear to define OPENSSL_API_COMPAT, so
679-
* we check whether it's undefined or it's less than the
680-
* value for 1.1.0.
681-
*/
682-
#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L
677+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
683678
OpenSSL_add_all_algorithms();
684679
#endif
685680
EVP_add_cipher_alias(SN_des_ede3_cbc, "3des");

0 commit comments

Comments
 (0)