crypto/modes/gcm128.c can be used as its own selftest. Add it to regress,
authormiod <miod@openbsd.org>
Thu, 17 Apr 2014 18:33:21 +0000 (18:33 +0000)
committermiod <miod@openbsd.org>
Thu, 17 Apr 2014 18:33:21 +0000 (18:33 +0000)
conveniently leaving the benchmark code not compiled in the test.

regress/lib/libcrypto/Makefile
regress/lib/libcrypto/gcm128/Makefile [new file with mode: 0644]

index 02734e9..46e867b 100644 (file)
@@ -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 (file)
index 0000000..7583403
--- /dev/null
@@ -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>