]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
MacOS prior to 10.12 does not support random API correctly
authorLenny Primak <lenny@flowlogix.com>
Sat, 11 Sep 2021 23:53:45 +0000 (18:53 -0500)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Sep 2021 12:54:02 +0000 (14:54 +0200)
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)

include/crypto/rand.h

index 674f840fd13c9b1754178e4a93a91df75d9fa2e6..8247d16c55e2389e85c5dd8f7ed139a5b8373085 100644 (file)
@@ -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>