From 8afd649ee75e59147739f3473e17c36c49a34fcd Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 17 Apr 2014 18:33:23 +0000 Subject: crypto/modes/gcm128.c can be used as its own selftest. Add it to regress, conveniently leaving the benchmark code not compiled in the test. --- regress/lib/libcrypto/Makefile | 3 ++- regress/lib/libcrypto/gcm128/Makefile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 regress/lib/libcrypto/gcm128/Makefile (limited to 'regress/lib') diff --git a/regress/lib/libcrypto/Makefile b/regress/lib/libcrypto/Makefile index 02734e992e0..46e867b81da 100644 --- a/regress/lib/libcrypto/Makefile +++ b/regress/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2014/04/17 07:52:08 jsg Exp $ +# $OpenBSD: Makefile,v 1.3 2014/04/17 18:33:21 miod Exp $ SUBDIR= \ bf \ @@ -13,6 +13,7 @@ SUBDIR= \ engine \ evp \ exp \ + gcm128 \ hmac \ idea \ ige \ diff --git a/regress/lib/libcrypto/gcm128/Makefile b/regress/lib/libcrypto/gcm128/Makefile new file mode 100644 index 00000000000..7583403ad3c --- /dev/null +++ b/regress/lib/libcrypto/gcm128/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.1 2014/04/17 18:33:22 miod Exp $ + +PROG= gcm128 +SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes +CFLAGS+= -DSELFTEST +CFLAGS+= -I${SRC} +.PATH: ${SRC} + +LDADD= -lcrypto +DPADD= ${LIBCRYPTO} + +.include -- cgit v1.2.3