summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlprimak <lenny@flowlogix.com>2021-09-12 20:21:30 -0500
committerTomas Mraz <tomas@openssl.org>2021-09-14 14:52:24 +0200
commitad0697696cc3d9f4a588a3b2d48d898619dbe228 (patch)
treeca4646654d8c376aedadb5f4bbca8bec8ff3df01 /include
parent566431716efab52b40cc3af6610ba831d5c1cccc (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/16591)
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 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>