From: Lenny Primak Date: Sat, 11 Sep 2021 23:53:45 +0000 (-0500) Subject: MacOS prior to 10.12 does not support random API correctly X-Git-Tag: OpenSSL_1_1_1m~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f3b120401533db82e99ed28de5fc8aab1b76b33;p=thirdparty%2Fopenssl.git MacOS prior to 10.12 does not support random API correctly Fixes #16517 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16587) --- diff --git a/include/crypto/rand.h b/include/crypto/rand.h index 674f840fd13..8247d16c55e 100644 --- a/include/crypto/rand.h +++ b/include/crypto/rand.h @@ -22,7 +22,7 @@ # if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM) # include -# if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000) || \ +# if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \ (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) # define OPENSSL_APPLE_CRYPTO_RANDOM 1 # include