提交 d698550f 编写于 作者: M Matt Caswell

Don't use RDRAND if told not to

Ensure we respect OPENSSL_NO_RDRAND
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 c4cbf9b3
......@@ -686,7 +686,8 @@ static int rand_status(void)
#if (defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
defined(__x86_64) || defined(__x86_64__) || \
defined(_M_AMD64) || defined (_M_X64)) && defined(OPENSSL_CPUID_OBJ)
defined(_M_AMD64) || defined (_M_X64)) && defined(OPENSSL_CPUID_OBJ) \
&& !defined(OPENSSL_NO_RDRAND)
# define RDRAND_CALLS 4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册