summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto
diff options
context:
space:
mode:
authormiod <>2014-04-22 21:27:15 +0000
committermiod <>2014-04-22 21:27:15 +0000
commit71b791a2ff679463d6ef915490232cfa037f02b2 (patch)
tree7f01145a77987f3aea2deaa91990a805eb4bb794 /src/regress/lib/libcrypto
parent996a57299e8b8467ff12bc7b90151e61248338ef (diff)
downloadopenbsd-71b791a2ff679463d6ef915490232cfa037f02b2.tar.gz
openbsd-71b791a2ff679463d6ef915490232cfa037f02b2.tar.bz2
openbsd-71b791a2ff679463d6ef915490232cfa037f02b2.zip
When compiling with AES_WRAP_TEST, make main() return a meaningful value
instead of garbage, and add this to the libcrypto regress. Note these tests are incomplete, as they always use the default IV.
Diffstat (limited to 'src/regress/lib/libcrypto')
-rw-r--r--src/regress/lib/libcrypto/Makefile3
-rw-r--r--src/regress/lib/libcrypto/aeswrap/Makefile12
2 files changed, 14 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/Makefile b/src/regress/lib/libcrypto/Makefile
index 46e867b81d..df9e45f96a 100644
--- a/src/regress/lib/libcrypto/Makefile
+++ b/src/regress/lib/libcrypto/Makefile
@@ -1,6 +1,7 @@
1# $OpenBSD: Makefile,v 1.3 2014/04/17 18:33:21 miod Exp $ 1# $OpenBSD: Makefile,v 1.4 2014/04/22 21:27:13 miod Exp $
2 2
3SUBDIR= \ 3SUBDIR= \
4 aeswrap \
4 bf \ 5 bf \
5 bn \ 6 bn \
6 cast \ 7 cast \
diff --git a/src/regress/lib/libcrypto/aeswrap/Makefile b/src/regress/lib/libcrypto/aeswrap/Makefile
new file mode 100644
index 0000000000..63770a5c7d
--- /dev/null
+++ b/src/regress/lib/libcrypto/aeswrap/Makefile
@@ -0,0 +1,12 @@
1# $OpenBSD: Makefile,v 1.1 2014/04/22 21:27:15 miod Exp $
2
3PROG= aes_wrap
4CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto
5CFLAGS+= -DAES_WRAP_TEST
6CFLAGS+= -I${CRYPTO} -I${CRYPTO}/aes
7.PATH: ${CRYPTO}/aes
8
9LDADD= -lcrypto
10DPADD= ${LIBCRYPTO}
11
12.include <bsd.regress.mk>