diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-08-24 11:28:19 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-09-01 15:41:58 +0200 |
commit | 24fd8541d47a46052b975db98b465faa7e4d898c (patch) | |
tree | fbe9188d876ba1ad776b57ee6c66197166299dfb /test | |
parent | 2f9789f7e7e8f17da32e1cadbbc3c398f99f2d23 (diff) |
Remove extern declarations of OPENSSL_ia32cap_P
Use the header file internal/cryptlib.h instead.
Remove checks for OPENSSL_NO_ASM and I386_ONLY
in cryptlib.c, to match the checks in other
places where OPENSSL_ia32cap_P is used and
assumed to be initialized.
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/9688)
Diffstat (limited to 'test')
-rw-r--r-- | test/rdrand_sanitytest.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/rdrand_sanitytest.c b/test/rdrand_sanitytest.c index 851e14ccf7..dcc9d2800a 100644 --- a/test/rdrand_sanitytest.c +++ b/test/rdrand_sanitytest.c @@ -11,7 +11,7 @@ #include <stdlib.h> #include <string.h> #include "testutil.h" -#include <openssl/opensslconf.h> +#include "internal/cryptlib.h" #if (defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ defined(__x86_64) || defined(__x86_64__) || \ @@ -20,10 +20,6 @@ size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len); size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len); -void OPENSSL_cpuid_setup(void); - -extern unsigned int OPENSSL_ia32cap_P[4]; - static int sanity_check_bytes(size_t (*rng)(unsigned char *, size_t), int rounds, int min_failures, int max_retries, int max_zero_words) { |