diff options
| author | jsing <> | 2016-12-21 15:51:05 +0000 |
|---|---|---|
| committer | jsing <> | 2016-12-21 15:51:05 +0000 |
| commit | e8afa36258d3a8aa37c43dd1c5e2e7410f2c007f (patch) | |
| tree | b05c9581165c480984b7305040e096e5cdca8f98 /src | |
| parent | 18adabd97858ed28289c9dc31e8042c515840be4 (diff) | |
| download | openbsd-e8afa36258d3a8aa37c43dd1c5e2e7410f2c007f.tar.gz openbsd-e8afa36258d3a8aa37c43dd1c5e2e7410f2c007f.tar.bz2 openbsd-e8afa36258d3a8aa37c43dd1c5e2e7410f2c007f.zip | |
Update libcrypto regress to handle header and non-exported symbol changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/Makefile.inc | 2 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/bn/general/Makefile | 6 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/bn/general/bntest.c | 2 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/utf8/Makefile | 4 |
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 | ||
| 2 | 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 @@ | |||
| 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 | ||
| 3 | PROG= bntest | 5 | PROG= bntest |
| 4 | LDADD= -lcrypto | 6 | LDADD= ${CRYPTO_INT} |
| 5 | DPADD= ${LIBCRYPTO} | 7 | DPADD= ${LIBCRYPTO} |
| 6 | WARNINGS= Yes | 8 | WARNINGS= Yes |
| 7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 9 | 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 @@ | |||
| 84 | #include <openssl/x509.h> | 84 | #include <openssl/x509.h> |
| 85 | #include <openssl/err.h> | 85 | #include <openssl/err.h> |
| 86 | 86 | ||
| 87 | int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom); | ||
| 88 | |||
| 87 | const int num0 = 100; /* number of tests */ | 89 | const int num0 = 100; /* number of tests */ |
| 88 | const int num1 = 50; /* additional tests for some functions */ | 90 | const int num1 = 50; /* additional tests for some functions */ |
| 89 | const int num2 = 5; /* number of tests for slow functions */ | 91 | 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 @@ | |||
| 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 | ||
| 3 | PROG= utf8test | 3 | PROG= utf8test |
| 4 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libcrypto/asn1 | 4 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libcrypto/asn1 |
| 5 | LDADD= -lcrypto | 5 | LDADD= ${CRYPTO_INT} |
| 6 | DPADD= ${LIBCRYPTO} | 6 | DPADD= ${LIBCRYPTO} |
| 7 | WARNINGS=Yes | 7 | WARNINGS=Yes |
| 8 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 8 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror |
