From: Milan Broz Date: Wed, 22 Apr 2026 13:19:24 +0000 (+0200) Subject: Fix rand_deprecated build if OPENSSL_API_COMPAT is not defined X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc818464500d56458eed41ce8ec6848626ffdd5b;p=thirdparty%2Fopenssl.git Fix rand_deprecated build if OPENSSL_API_COMPAT is not defined Add test for OPENSSL_NO_DEPRECATED_1_1_0 (that covers symbols for these ancient functions). With strict warnings it break build with 'OPENSSL_API_COMPAT' is not defined, evaluates to '0' [-Werror=undef] Reviewed-by: Tomas Mraz Reviewed-by: Eugene Syromiatnikov Reviewed-by: Norbert Pocs MergeDate: Thu Apr 30 11:42:25 2026 (Merged from https://github.com/openssl/openssl/pull/30941) --- diff --git a/crypto/rand/rand_deprecated.c b/crypto/rand/rand_deprecated.c index d1eabc0080f..d838f3cd708 100644 --- a/crypto/rand/rand_deprecated.c +++ b/crypto/rand/rand_deprecated.c @@ -13,7 +13,7 @@ #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) #include -#if OPENSSL_API_COMPAT < 0x10100000L +#ifndef OPENSSL_NO_DEPRECATED_1_1_0 #define DEPRECATED_RAND_FUNCTIONS_DEFINED