diff options
| author | miod <> | 2014-04-22 21:27:15 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-22 21:27:15 +0000 |
| commit | 4e5c7a92843baa574477161a6a1b2df108ba3cde (patch) | |
| tree | 7f01145a77987f3aea2deaa91990a805eb4bb794 /src/regress/lib | |
| parent | e22e908b0314c8680bfa1ce27f4d5ddb881238c5 (diff) | |
| download | openbsd-4e5c7a92843baa574477161a6a1b2df108ba3cde.tar.gz openbsd-4e5c7a92843baa574477161a6a1b2df108ba3cde.tar.bz2 openbsd-4e5c7a92843baa574477161a6a1b2df108ba3cde.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')
| -rw-r--r-- | src/regress/lib/libcrypto/Makefile | 3 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/aeswrap/Makefile | 12 |
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 | ||
| 3 | SUBDIR= \ | 3 | SUBDIR= \ |
| 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 | |||
| 3 | PROG= aes_wrap | ||
| 4 | CRYPTO= ${.CURDIR}/../../../../lib/libssl/src/crypto | ||
| 5 | CFLAGS+= -DAES_WRAP_TEST | ||
| 6 | CFLAGS+= -I${CRYPTO} -I${CRYPTO}/aes | ||
| 7 | .PATH: ${CRYPTO}/aes | ||
| 8 | |||
| 9 | LDADD= -lcrypto | ||
| 10 | DPADD= ${LIBCRYPTO} | ||
| 11 | |||
| 12 | .include <bsd.regress.mk> | ||
