From: Martin Schwenke Date: Fri, 18 Jun 2021 06:35:16 +0000 (+1000) Subject: ec: Fail build on big-endian with enable-ec_nistp_64_gcc_128 X-Git-Tag: openssl-3.0.0-beta2~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5fea4664994d907516d60eddd1b680344a556b;p=thirdparty%2Fopenssl.git ec: Fail build on big-endian with enable-ec_nistp_64_gcc_128 I can't see way of making Configure fail but this at least makes the build fail. Fixes #15821 Signed-off-by: Martin Schwenke Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15831) --- diff --git a/crypto/ec/ec_local.h b/crypto/ec/ec_local.h index 693f21fa29a..f34e06aea89 100644 --- a/crypto/ec/ec_local.h +++ b/crypto/ec/ec_local.h @@ -508,6 +508,10 @@ int ossl_ec_GF2m_simple_field_div(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *); #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 +# ifdef B_ENDIAN +# error "Can not enable ec_nistp_64_gcc_128 on big-endian systems" +# endif + /* method functions in ecp_nistp224.c */ int ossl_ec_GFp_nistp224_group_init(EC_GROUP *group); int ossl_ec_GFp_nistp224_group_set_curve(EC_GROUP *group, const BIGNUM *p,