]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
MacOS prior to 10.12 does not support random API correctly
authorlprimak <lenny@flowlogix.com>
Mon, 13 Sep 2021 01:21:30 +0000 (20:21 -0500)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Sep 2021 12:50:39 +0000 (14:50 +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/16592)

include/crypto/rand.h

index ac41a9f62bfe3f4d9718159898246277a0b3ec13..fa3b5b2b9394946d79aa07991a6561b45cfaadbc 100644 (file)
@@ -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>