summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLenny Primak <lenny@flowlogix.com>2021-09-11 18:53:45 -0500
committerTomas Mraz <tomas@openssl.org>2021-09-14 14:54:02 +0200
commit2f3b120401533db82e99ed28de5fc8aab1b76b33 (patch)
tree3b6784ddf456e41a6841344f51f13459b784ac0c /include
parent9e44ffc281326330937eee0e94b6fd4bfcaa98eb (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/16587)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/rand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/rand.h b/include/crypto/rand.h
index 674f840fd1..8247d16c55 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 <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>