From a90044a4638c82c8078837532be1fd2e2217d09d Mon Sep 17 00:00:00 2001 From: Michael Ryleev Date: Fri, 5 May 2017 09:44:33 -0700 Subject: [PATCH] Bypass building fipsmodule/rand/urandom.c when builing for Trusty Change-Id: Icf1d6ec9d3fb33a124a9f61c75d29248a2582680 Reviewed-on: https://boringssl-review.googlesource.com/15964 Reviewed-by: David Benjamin Commit-Queue: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org --- crypto/fipsmodule/rand/urandom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/fipsmodule/rand/urandom.c b/crypto/fipsmodule/rand/urandom.c index 7f761450..202f2a47 100644 --- a/crypto/fipsmodule/rand/urandom.c +++ b/crypto/fipsmodule/rand/urandom.c @@ -15,7 +15,7 @@ #include #if !defined(OPENSSL_WINDOWS) && !defined(OPENSSL_FUCHSIA) && \ - !defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE) + !defined(BORINGSSL_UNSAFE_DETERMINISTIC_MODE) && !defined(OPENSSL_TRUSTY) #include #include @@ -291,4 +291,4 @@ void CRYPTO_sysrand(uint8_t *out, size_t requested) { } #endif /* !OPENSSL_WINDOWS && !defined(OPENSSL_FUCHSIA) && \ - !BORINGSSL_UNSAFE_DETERMINISTIC_MODE */ + !BORINGSSL_UNSAFE_DETERMINISTIC_MODE && !OPENSSL_TRUSTY */