summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/chacha
diff options
context:
space:
mode:
authormiod <>2014-06-01 11:11:46 +0000
committermiod <>2014-06-01 11:11:46 +0000
commit8feed9c0b8cf35589d2442426a7f5c022f055e9d (patch)
tree764f224e0d43a606966be44aaee32715ee508747 /src/regress/lib/libcrypto/chacha
parente356b447e74b757810a71e2bf8e431b22fd6e328 (diff)
downloadopenbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.gz
openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.bz2
openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.zip
Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.
Diffstat (limited to 'src/regress/lib/libcrypto/chacha')
-rw-r--r--src/regress/lib/libcrypto/chacha/Makefile4
-rw-r--r--src/regress/lib/libcrypto/chacha/chachatest.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/chacha/Makefile b/src/regress/lib/libcrypto/chacha/Makefile
index b09dda17a1..182879c693 100644
--- a/src/regress/lib/libcrypto/chacha/Makefile
+++ b/src/regress/lib/libcrypto/chacha/Makefile
@@ -1,7 +1,9 @@
1# $OpenBSD: Makefile,v 1.1 2014/05/01 13:15:22 jsing Exp $ 1# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $
2 2
3PROG= chachatest 3PROG= chachatest
4LDADD= -lcrypto 4LDADD= -lcrypto
5DPADD= ${LIBCRYPTO} 5DPADD= ${LIBCRYPTO}
6WARNINGS= Yes
7CFLAGS+= -Werror
6 8
7.include <bsd.regress.mk> 9.include <bsd.regress.mk>
diff --git a/src/regress/lib/libcrypto/chacha/chachatest.c b/src/regress/lib/libcrypto/chacha/chachatest.c
index ff67fbf59a..aa10939d7e 100644
--- a/src/regress/lib/libcrypto/chacha/chachatest.c
+++ b/src/regress/lib/libcrypto/chacha/chachatest.c
@@ -227,7 +227,7 @@ main(int argc, char **argv)
227{ 227{
228 struct chacha_tv *tv; 228 struct chacha_tv *tv;
229 unsigned char *in, *out; 229 unsigned char *in, *out;
230 int i, j; 230 size_t i, j;
231 231
232 for (i = 0; i < N_VECTORS; i++) { 232 for (i = 0; i < N_VECTORS; i++) {
233 tv = &chacha_test_vectors[i]; 233 tv = &chacha_test_vectors[i];