diff options
author | Tom Cosgrove <tom.cosgrove@arm.com> | 2022-12-03 12:58:43 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-12-06 17:18:39 +0100 |
commit | a6e50030516378d5187b9fe52b921c2f96c8d437 (patch) | |
tree | 5bdabeaee4b68880b42e5c1d0b2b9d249cb828df /crypto/armcap.c | |
parent | cca2d261d594972d1a29ed836b6cf3463dad2680 (diff) |
Fix the code used to detect aarch64 capabilities when we don't have getauxval()
In addition to a missing prototype there was also a missing closing brace '}'.
Fixes #19825.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19833)
(cherry picked from commit f97ddfc3059ff568919e92597b2691d5366fd34b)
Diffstat (limited to 'crypto/armcap.c')
-rw-r--r-- | crypto/armcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/armcap.c b/crypto/armcap.c index a43f17304b..71296786c3 100644 --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -76,6 +76,7 @@ void _armv8_pmull_probe(void); # ifdef __aarch64__ void _armv8_sm3_probe(void); void _armv8_sm4_probe(void); +void _armv8_eor3_probe(void); void _armv8_sha512_probe(void); unsigned int _armv8_cpuid_probe(void); void _armv8_sve_probe(void); @@ -354,6 +355,7 @@ void OPENSSL_cpuid_setup(void) if (sigsetjmp(ill_jmp, 1) == 0) { _armv8_sm3_probe(); OPENSSL_armcap_P |= ARMV8_SM3; + } if (sigsetjmp(ill_jmp, 1) == 0) { _armv8_eor3_probe(); OPENSSL_armcap_P |= ARMV8_SHA3; |