From 92d7120c60cea7c9e0219921c2cc2320346218b2 Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Thu, 1 Jul 2021 12:01:22 +1000 Subject: [PATCH] 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) --- crypto/bn/build.info | 5 ++++- test/pem_read_depr_test.c | 3 +++ test/sslapitest.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/crypto/bn/build.info b/crypto/bn/build.info index c3c71884e5..40d7db9f50 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 7ef7f30be6..b6a518873a 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 bbb1cf91f4..1b3db55d6b 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "helpers/ssltestlib.h" #include "testutil.h"