From: Shane Lontis Date: Thu, 1 Jul 2021 02:01:22 +0000 (+1000) Subject: Fix compile errors when building with --api=1.1.0 no-deprecated. X-Git-Tag: openssl-3.0.0-beta2~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92d7120c60cea7c9e0219921c2cc2320346218b2;p=thirdparty%2Fopenssl.git Fix compile errors when building with --api=1.1.0 no-deprecated. Fixes #15963 INSTALL.md uses these exact options as an example so it should work. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15965) --- diff --git a/crypto/bn/build.info b/crypto/bn/build.info index c3c71884e50..40d7db9f502 100644 --- a/crypto/bn/build.info +++ b/crypto/bn/build.info @@ -108,8 +108,11 @@ $COMMON=bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c \ bn_intern.c bn_dh.c bn_rsa_fips186_4.c bn_const.c SOURCE[../../libcrypto]=$COMMON $BNASM bn_print.c bn_err.c bn_srp.c DEFINE[../../libcrypto]=$BNDEF +IF[{- !$disabled{'deprecated-0.9.8'} -}] + SOURCE[../../libcrypto]=bn_depr.c +ENDIF IF[{- !$disabled{'deprecated-3.0'} -}] - SOURCE[../../libcrypto]=bn_depr.c bn_x931p.c + SOURCE[../../libcrypto]=bn_x931p.c ENDIF SOURCE[../../providers/libfips.a]=$COMMON $BNASM DEFINE[../../providers/libfips.a]=$BNDEF diff --git a/test/pem_read_depr_test.c b/test/pem_read_depr_test.c index 7ef7f30be69..b6a518873ab 100644 --- a/test/pem_read_depr_test.c +++ b/test/pem_read_depr_test.c @@ -15,6 +15,9 @@ #include #include +#include +#include +#include #include "testutil.h" diff --git a/test/sslapitest.c b/test/sslapitest.c index bbb1cf91f40..1b3db55d6bc 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "helpers/ssltestlib.h" #include "testutil.h"