From dc9deb1f51cfcaf7748e2d10934c6292a90678b7 Mon Sep 17 00:00:00 2001 From: Jonathan Elchison Date: Mon, 9 Apr 2018 04:20:56 -0400 Subject: [PATCH] Add '-q' to new OpenSSL cipher tests --- lockbox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lockbox.sh b/lockbox.sh index ee9b99a..31607f5 100755 --- a/lockbox.sh +++ b/lockbox.sh @@ -252,8 +252,8 @@ if [[ ! -x $(which openssl 2>/dev/null) ]] || exit 1 fi -(openssl enc help 2>&1 || true) | grep -- '-aes-256-ctr' || (echo "[-] Installed version of OpenSSL does not expose required aes-256-ctr cipher" >&2; false) -(openssl enc help 2>&1 || true) | grep -- '-aes-256-ecb' || (echo "[-] Installed version of OpenSSL does not expose required aes-256-ecb cipher" >&2; false) +(openssl enc help 2>&1 || true) | grep -q -- '-aes-256-ctr' || (echo "[-] Installed version of OpenSSL does not expose required aes-256-ctr cipher" >&2; false) +(openssl enc help 2>&1 || true) | grep -q -- '-aes-256-ecb' || (echo "[-] Installed version of OpenSSL does not expose required aes-256-ecb cipher" >&2; false) ###############################################################################