mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 18:13:39 +08:00
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>
This commit is contained in:
parent
107783d9c5
commit
72983c0eab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user