summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/Makefile.inc2
-rw-r--r--src/regress/lib/libcrypto/bn/general/Makefile6
-rw-r--r--src/regress/lib/libcrypto/bn/general/bntest.c2
-rw-r--r--src/regress/lib/libcrypto/utf8/Makefile4
4 files changed, 10 insertions, 4 deletions
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 @@
1# Use this variable when the test needs internal symbols from libcrypto
2CRYPTO_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 @@
1# $OpenBSD: Makefile,v 1.2 2014/07/08 15:53:52 jsing Exp $ 1# $OpenBSD: Makefile,v 1.3 2016/12/21 15:51:05 jsing Exp $
2
3.include "../../Makefile.inc"
2 4
3PROG= bntest 5PROG= bntest
4LDADD= -lcrypto 6LDADD= ${CRYPTO_INT}
5DPADD= ${LIBCRYPTO} 7DPADD= ${LIBCRYPTO}
6WARNINGS= Yes 8WARNINGS= Yes
7CFLAGS+= -DLIBRESSL_INTERNAL -Werror 9CFLAGS+= -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 @@
84#include <openssl/x509.h> 84#include <openssl/x509.h>
85#include <openssl/err.h> 85#include <openssl/err.h>
86 86
87int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
88
87const int num0 = 100; /* number of tests */ 89const int num0 = 100; /* number of tests */
88const int num1 = 50; /* additional tests for some functions */ 90const int num1 = 50; /* additional tests for some functions */
89const int num2 = 5; /* number of tests for slow functions */ 91const 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 @@
1# $OpenBSD: Makefile,v 1.5 2016/09/02 17:02:56 beck Exp $ 1# $OpenBSD: Makefile,v 1.6 2016/12/21 15:51:05 jsing Exp $
2 2
3PROG= utf8test 3PROG= utf8test
4CPPFLAGS+=-I${.CURDIR}/../../../../lib/libcrypto/asn1 4CPPFLAGS+=-I${.CURDIR}/../../../../lib/libcrypto/asn1
5LDADD= -lcrypto 5LDADD= ${CRYPTO_INT}
6DPADD= ${LIBCRYPTO} 6DPADD= ${LIBCRYPTO}
7WARNINGS=Yes 7WARNINGS=Yes
8CFLAGS+= -DLIBRESSL_INTERNAL -Werror 8CFLAGS+= -DLIBRESSL_INTERNAL -Werror