From fad0b6cea3bf75ce2428a6d4f8ad79068eb81444 Mon Sep 17 00:00:00 2001 From: doug <> Date: Tue, 29 Sep 2015 01:07:56 +0000 Subject: Fix sha2 regression test for libcrypto. By default, "openssl sha" used SHA-0. However, it was possible to use the form "openssl sha -sha256" to run SHA-256 instead. The regression test used this form. Since we removed SHA-0 support, the regress tests should now call "openssl ". ok guenther@, bcook@ --- src/regress/lib/libcrypto/sha2/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regress/lib/libcrypto/sha2/Makefile b/src/regress/lib/libcrypto/sha2/Makefile index e2bbb02d15..e7bccf5f24 100644 --- a/src/regress/lib/libcrypto/sha2/Makefile +++ b/src/regress/lib/libcrypto/sha2/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2014/08/26 17:50:07 jsing Exp $ +# $OpenBSD: Makefile,v 1.3 2015/09/29 01:07:56 doug Exp $ REGRESS_TARGETS=regress-sha2 OPENSSL=/usr/bin/openssl @@ -31,7 +31,7 @@ HASHES= \ regress-sha2: .for hash input output in ${HASHES} - @(echo -n ${input} | ${OPENSSL} sha -${hash} | (read a b; \ + @(echo -n ${input} | ${OPENSSL} ${hash} | (read a b; \ test $$b == ${output} || \ (echo wrong ${hash} hash of \"${input}\"; \ echo expected: ${output}; \ -- cgit v1.2.3-55-g6feb