diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-12-21 15:51:06 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-12-21 15:51:06 +0000 |
commit | 2ea2fedf3e342d5bb7236940e1b8267a12dca9f3 (patch) | |
tree | b8b294309ad3e6b9ae73c736670d6b9ed8d61678 /regress/lib | |
parent | 068e7d6b1974594aaac98dfd843c8c32de0d42dd (diff) |
Update libcrypto regress to handle header and non-exported symbol changes.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libcrypto/Makefile.inc | 2 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/general/Makefile | 6 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/general/bntest.c | 2 | ||||
-rw-r--r-- | regress/lib/libcrypto/utf8/Makefile | 4 |
4 files changed, 10 insertions, 4 deletions
diff --git a/regress/lib/libcrypto/Makefile.inc b/regress/lib/libcrypto/Makefile.inc new file mode 100644 index 00000000000..bf016ee9828 --- /dev/null +++ b/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/regress/lib/libcrypto/bn/general/Makefile b/regress/lib/libcrypto/bn/general/Makefile index d686dabd0e8..18207ffb01f 100644 --- a/regress/lib/libcrypto/bn/general/Makefile +++ b/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/regress/lib/libcrypto/bn/general/bntest.c b/regress/lib/libcrypto/bn/general/bntest.c index c5ec3cdc13f..0247dacaa49 100644 --- a/regress/lib/libcrypto/bn/general/bntest.c +++ b/regress/lib/libcrypto/bn/general/bntest.c @@ -84,6 +84,8 @@ #include <openssl/x509.h> #include <openssl/err.h> +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/regress/lib/libcrypto/utf8/Makefile b/regress/lib/libcrypto/utf8/Makefile index 0d97a8a7fd6..5f06560ea55 100644 --- a/regress/lib/libcrypto/utf8/Makefile +++ b/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 |