diff options
author | miod <> | 2014-06-01 11:11:46 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 11:11:46 +0000 |
commit | 8feed9c0b8cf35589d2442426a7f5c022f055e9d (patch) | |
tree | 764f224e0d43a606966be44aaee32715ee508747 /src/regress/lib/libcrypto/gcm128 | |
parent | e356b447e74b757810a71e2bf8e431b22fd6e328 (diff) | |
download | openbsd-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/gcm128')
-rw-r--r-- | src/regress/lib/libcrypto/gcm128/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/gcm128/gcm128test.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/gcm128/Makefile b/src/regress/lib/libcrypto/gcm128/Makefile index c1ce651f51..1119fc3c1e 100644 --- a/src/regress/lib/libcrypto/gcm128/Makefile +++ b/src/regress/lib/libcrypto/gcm128/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2014/05/31 14:39:06 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= gcm128test | 3 | PROG= gcm128test |
4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes | 4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes |
@@ -6,5 +6,7 @@ CFLAGS+=-I${SRC} | |||
6 | 6 | ||
7 | LDADD= -lcrypto | 7 | LDADD= -lcrypto |
8 | DPADD= ${LIBCRYPTO} | 8 | DPADD= ${LIBCRYPTO} |
9 | #WARNINGS= Yes | ||
10 | #CFLAGS+= -Werror | ||
9 | 11 | ||
10 | .include <bsd.regress.mk> | 12 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/gcm128/gcm128test.c b/src/regress/lib/libcrypto/gcm128/gcm128test.c index 5ed8e0a714..57267b8dbf 100644 --- a/src/regress/lib/libcrypto/gcm128/gcm128test.c +++ b/src/regress/lib/libcrypto/gcm128/gcm128test.c | |||
@@ -327,7 +327,8 @@ static const u8 IV20[64]={0xff,0xff,0xff,0xff}, /* this results in 0xff in count | |||
327 | ret++, printf ("decrypt test#%d failed.\n",n); \ | 327 | ret++, printf ("decrypt test#%d failed.\n",n); \ |
328 | } while(0) | 328 | } while(0) |
329 | 329 | ||
330 | int main() | 330 | int |
331 | main(int argc, char **argv) | ||
331 | { | 332 | { |
332 | GCM128_CONTEXT ctx; | 333 | GCM128_CONTEXT ctx; |
333 | AES_KEY key; | 334 | AES_KEY key; |