Line 0
Link Here
|
|
|
1 |
--- src/lib/crypto/OSSLCryptoFactory.cpp.orig 2018-12-04 15:21:48 UTC |
2 |
+++ src/lib/crypto/OSSLCryptoFactory.cpp |
3 |
@@ -141,8 +141,10 @@ OSSLCryptoFactory::OSSLCryptoFactory() |
4 |
// Initialise OpenSSL |
5 |
OpenSSL_add_all_algorithms(); |
6 |
|
7 |
+#if !( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ) |
8 |
// Make sure RDRAND is loaded first |
9 |
ENGINE_load_rdrand(); |
10 |
+#endif |
11 |
// Locate the engine |
12 |
rdrand_engine = ENGINE_by_id("rdrand"); |
13 |
// Use RDRAND if available |