summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-04-17 18:33:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-04-17 18:33:23 +0000
commit8afd649ee75e59147739f3473e17c36c49a34fcd (patch)
tree39656d6f59f80c1d72a1ea125ab944dfcddcae10 /regress/lib
parent774870dfb0dfcacc5cc4b12ea68dbf4b3a070111 (diff)
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.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/Makefile3
-rw-r--r--regress/lib/libcrypto/gcm128/Makefile12
2 files changed, 14 insertions, 1 deletions
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 <bsd.regress.mk>