summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn/general
diff options
context:
space:
mode:
authorjsing <>2016-12-21 15:51:05 +0000
committerjsing <>2016-12-21 15:51:05 +0000
commit8815d5c3f9c607a6753e58d4c790a789abf0d2e2 (patch)
treeb05c9581165c480984b7305040e096e5cdca8f98 /src/regress/lib/libcrypto/bn/general
parentb0083b858b1b84b8b19bc553faa582079dda96ae (diff)
downloadopenbsd-8815d5c3f9c607a6753e58d4c790a789abf0d2e2.tar.gz
openbsd-8815d5c3f9c607a6753e58d4c790a789abf0d2e2.tar.bz2
openbsd-8815d5c3f9c607a6753e58d4c790a789abf0d2e2.zip
Update libcrypto regress to handle header and non-exported symbol changes.
Diffstat (limited to 'src/regress/lib/libcrypto/bn/general')
-rw-r--r--src/regress/lib/libcrypto/bn/general/Makefile6
-rw-r--r--src/regress/lib/libcrypto/bn/general/bntest.c2
2 files changed, 6 insertions, 2 deletions
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 */