From: Richard Levitte Date: Mon, 25 Feb 2019 18:27:42 +0000 (+0100) Subject: Rearrange the inclusion of curve448/curve448_lcl.h X-Git-Tag: OpenSSL_1_1_1b~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f408e2a352b59f2e7aa2160bfb6285725fe88ea7;p=oweals%2Fopenssl.git Rearrange the inclusion of curve448/curve448_lcl.h The real cause for this change is that test/ec_internal_test.c includes ec_lcl.h, and including curve448/curve448_lcl.h from there doesn't work so well with compilers who always do inclusions relative to the C file being compiled. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8334) --- diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h index b3b7b28ca4..119255f1dc 100644 --- a/crypto/ec/ec_lcl.h +++ b/crypto/ec/ec_lcl.h @@ -15,7 +15,6 @@ #include #include "internal/refcount.h" #include "internal/ec_int.h" -#include "curve448/curve448_lcl.h" #if defined(__SUNPRO_C) # if __SUNPRO_C >= 0x520 diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index b76bfdb6dc..efbff49cbf 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -15,6 +15,7 @@ #include "internal/asn1_int.h" #include "internal/evp_int.h" #include "ec_lcl.h" +#include "curve448/curve448_lcl.h" #define X25519_BITS 253 #define X25519_SECURITY_BITS 128