From: lprimak Date: Mon, 13 Sep 2021 01:21:30 +0000 (-0500) Subject: MacOS prior to 10.12 does not support random API correctly X-Git-Tag: openssl-3.2.0-alpha1~3568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24cdb1bfecbd765e829b9932a5a60ff63a7dff4b;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/16592) --- diff --git a/include/crypto/rand.h b/include/crypto/rand.h index ac41a9f62bf..fa3b5b2b939 100644 --- a/include/crypto/rand.h +++ b/include/crypto/rand.h @@ -24,7 +24,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