]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix rand_deprecated build if OPENSSL_API_COMPAT is not defined
authorMilan Broz <gmazyland@gmail.com>
Wed, 22 Apr 2026 13:19:24 +0000 (15:19 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Thu, 30 Apr 2026 11:41:56 +0000 (13:41 +0200)
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 <tomas@openssl.foundation>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Thu Apr 30 11:42:25 2026
(Merged from https://github.com/openssl/openssl/pull/30941)

crypto/rand/rand_deprecated.c

index d1eabc0080f57faee17376044aa14260d3c41f12..d838f3cd708d8205405995212a6c4212241979b0 100644 (file)
@@ -13,7 +13,7 @@
 
 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
 #include <windows.h>
-#if OPENSSL_API_COMPAT < 0x10100000L
+#ifndef OPENSSL_NO_DEPRECATED_1_1_0
 
 #define DEPRECATED_RAND_FUNCTIONS_DEFINED