From e8afa36258d3a8aa37c43dd1c5e2e7410f2c007f Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 21 Dec 2016 15:51:05 +0000 Subject: Update libcrypto regress to handle header and non-exported symbol changes. --- src/regress/lib/libcrypto/Makefile.inc | 2 ++ src/regress/lib/libcrypto/bn/general/Makefile | 6 ++++-- src/regress/lib/libcrypto/bn/general/bntest.c | 2 ++ src/regress/lib/libcrypto/utf8/Makefile | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 src/regress/lib/libcrypto/Makefile.inc (limited to 'src') diff --git a/src/regress/lib/libcrypto/Makefile.inc b/src/regress/lib/libcrypto/Makefile.inc new file mode 100644 index 0000000000..bf016ee982 --- /dev/null +++ b/src/regress/lib/libcrypto/Makefile.inc @@ -0,0 +1,2 @@ +# Use this variable when the test needs internal symbols from libcrypto +CRYPTO_INT= -Wl,-Bstatic -lcrypto -Wl,-Bdynamic diff --git a/src/regress/lib/libcrypto/bn/general/Makefile b/src/regress/lib/libcrypto/bn/general/Makefile index d686dabd0e..18207ffb01 100644 --- a/src/regress/lib/libcrypto/bn/general/Makefile +++ b/src/regress/lib/libcrypto/bn/general/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.2 2014/07/08 15:53:52 jsing Exp $ +# $OpenBSD: Makefile,v 1.3 2016/12/21 15:51:05 jsing Exp $ + +.include "../../Makefile.inc" PROG= bntest -LDADD= -lcrypto +LDADD= ${CRYPTO_INT} DPADD= ${LIBCRYPTO} WARNINGS= Yes CFLAGS+= -DLIBRESSL_INTERNAL -Werror diff --git a/src/regress/lib/libcrypto/bn/general/bntest.c b/src/regress/lib/libcrypto/bn/general/bntest.c index c5ec3cdc13..0247dacaa4 100644 --- a/src/regress/lib/libcrypto/bn/general/bntest.c +++ b/src/regress/lib/libcrypto/bn/general/bntest.c @@ -84,6 +84,8 @@ #include #include +int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom); + const int num0 = 100; /* number of tests */ const int num1 = 50; /* additional tests for some functions */ const int num2 = 5; /* number of tests for slow functions */ diff --git a/src/regress/lib/libcrypto/utf8/Makefile b/src/regress/lib/libcrypto/utf8/Makefile index 0d97a8a7fd..5f06560ea5 100644 --- a/src/regress/lib/libcrypto/utf8/Makefile +++ b/src/regress/lib/libcrypto/utf8/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.5 2016/09/02 17:02:56 beck Exp $ +# $OpenBSD: Makefile,v 1.6 2016/12/21 15:51:05 jsing Exp $ PROG= utf8test CPPFLAGS+=-I${.CURDIR}/../../../../lib/libcrypto/asn1 -LDADD= -lcrypto +LDADD= ${CRYPTO_INT} DPADD= ${LIBCRYPTO} WARNINGS=Yes CFLAGS+= -DLIBRESSL_INTERNAL -Werror -- cgit v1.2.3-55-g6feb