diff options
author | David Carlier <devnexen@gmail.com> | 2021-08-24 22:40:14 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-08-27 08:53:05 +0200 |
commit | 96ac8f13f4d0ee96baf5724d9f96c44c34b8606c (patch) | |
tree | 5855f915cb33bdb2c3df0d6435774926ea1a70e3 /crypto | |
parent | 15d1ddde5de9d28b671d3f6fe8757f4b87e67821 (diff) |
Darwin platform allows to build on releases before Yosemite/ios 8.
issue #16407 #16408
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16409)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/rand_unix.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index 43f1069d15..0f4525106a 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -34,9 +34,6 @@ #if defined(__OpenBSD__) # include <sys/param.h> #endif -#if defined(__APPLE__) -# include <CommonCrypto/CommonRandom.h> -#endif #if defined(OPENSSL_SYS_UNIX) || defined(__DJGPP__) # include <sys/types.h> @@ -381,7 +378,7 @@ static ssize_t syscall_random(void *buf, size_t buflen) if (errno != ENOSYS) return -1; } -# elif defined(__APPLE__) +# elif defined(OPENSSL_APPLE_CRYPTO_RANDOM) if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess) return (ssize_t)buflen; |