diff options
author | lprimak <lenny@flowlogix.com> | 2021-09-12 20:21:30 -0500 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-09-14 14:50:39 +0200 |
commit | 24cdb1bfecbd765e829b9932a5a60ff63a7dff4b (patch) | |
tree | 9aa7a85c4f5b30ddc85714cad99dc5be355ce2cb /include | |
parent | ea0d79db9be9066de350c44c160bd8b17f2be666 (diff) |
MacOS prior to 10.12 does not support random API correctly
Fixes #16517
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16592)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/rand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/rand.h b/include/crypto/rand.h index ac41a9f62b..fa3b5b2b93 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 <Availability.h> -# 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 <CommonCrypto/CommonCryptoError.h> |