Skip to content

Commit

Permalink
Add '-q' to new OpenSSL cipher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JElchison committed Apr 9, 2018
1 parent 87e92cf commit dc9deb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lockbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)


###############################################################################
Expand Down

0 comments on commit dc9deb1

Please sign in to comment.