Fix compile errors when building with --api=1.1.0 no-deprecated.
authorShane Lontis <shane.lontis@oracle.com>
Thu, 1 Jul 2021 02:01:22 +0000 (12:01 +1000)
committerPauli <pauli@openssl.org>
Fri, 2 Jul 2021 03:45:32 +0000 (13:45 +1000)
Fixes #15963

INSTALL.md uses these exact options as an example so it should work.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15965)

crypto/bn/build.info
test/pem_read_depr_test.c
test/sslapitest.c

index c3c71884e509722d755c4ff75d7c25df062c6fa2..40d7db9f502b747866554febed43cf496567b108 100644 (file)
@@ -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
index 7ef7f30be69cddf5825d68b5435015b3e74418ce..b6a518873ab8730d09b695c80ebf25c5384b2281 100644 (file)
@@ -15,6 +15,9 @@
 
 #include <openssl/pem.h>
 #include <openssl/bio.h>
+#include <openssl/dh.h>
+#include <openssl/dsa.h>
+#include <openssl/rsa.h>
 
 #include "testutil.h"
 
index bbb1cf91f40db0137ab961f804e59a63350c42b8..1b3db55d6bc6e6ab5328b76c6e087fcbf35260ee 100644 (file)
@@ -32,6 +32,7 @@
 #include <openssl/provider.h>
 #include <openssl/param_build.h>
 #include <openssl/x509v3.h>
+#include <openssl/dh.h>
 
 #include "helpers/ssltestlib.h"
 #include "testutil.h"