diff options
author | Ingo Franzki <ifranzki@linux.ibm.com> | 2024-02-02 10:20:55 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-02-06 09:30:11 +0100 |
commit | a5b0c568dbefddd154f99011d7ce76cfbfadb67a (patch) | |
tree | cfa3b0b81316ec61a9e3400f9c44ce9d1bca555d /include | |
parent | 22f82d457c06289ec66a627a3d11649d83beff88 (diff) |
s390x: Fix build on s390x with 'disable-asm'
Do not define S390X_MOD_EXP for a NO_ASM build, this would result in
unresolved externals for s390x_mod_exp and s390x_crt.
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23458)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/bn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crypto/bn.h b/include/crypto/bn.h index 33f979ce91..48859683fe 100644 --- a/include/crypto/bn.h +++ b/include/crypto/bn.h @@ -116,7 +116,8 @@ OSSL_LIB_CTX *ossl_bn_get_libctx(BN_CTX *ctx); extern const BIGNUM ossl_bn_inv_sqrt_2; -#if defined(OPENSSL_SYS_LINUX) && !defined(FIPS_MODULE) && defined (__s390x__) +#if defined(OPENSSL_SYS_LINUX) && !defined(FIPS_MODULE) && defined (__s390x__) \ + && !defined (OPENSSL_NO_ASM) # define S390X_MOD_EXP #endif |