diff options
author | Andy Polyakov <appro@openssl.org> | 2018-03-05 17:10:03 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-03-06 23:18:24 +0100 |
commit | 72983c0eab750dfc1b6298c516df7afb1a73ba54 (patch) | |
tree | ca0852c8100405cc0381d6788ec0416f9e06175e /crypto/armcap.c | |
parent | 107783d9c56e7dcb338c011fa202ffa8f066dbca (diff) |
crypto/armcap.c: mask SHA512 hardware detection on iOS.
When running iOS application from command line it's impossible to
get past the failing capability detection. This is because it's
executed under debugger and iOS debugger is impossible to deal with.
[If Apple implements SHA512 in silicon, it would have to be detected
with sysctlbyname.]
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/armcap.c')
-rw-r--r-- | crypto/armcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/armcap.c b/crypto/armcap.c index d67073302a..1b3c2722d1 100644 --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -191,7 +191,7 @@ void OPENSSL_cpuid_setup(void) _armv8_sha256_probe(); OPENSSL_armcap_P |= ARMV8_SHA256; } -# ifdef __aarch64__ +# if defined(__aarch64__) && !defined(__APPLE__) if (sigsetjmp(ill_jmp, 1) == 0) { _armv8_sha512_probe(); OPENSSL_armcap_P |= ARMV8_SHA512; |