From 8aa8254c2d63f224d4c3a3c4080afb4fe4a38791 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 23 Feb 2015 10:40:10 +0100 Subject: [PATCH] - FIX #62 (CentOS 7/RHEL: engine failure), was not usable b4 --- testssl.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 45ac47b..a45e99f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2489,7 +2489,10 @@ cleanup () { # for now only GOST engine initialize_engine(){ - if uname -s | grep -q BSD || ! $OPENSSL engine gost -vvvv -t -c >/dev/null 2>&1; then + if ! $OPENSSL engine gost -vvvv -t -c >/dev/null 2>&1; then + pr_litemagenta "No engine or GOST support via engine with your $OPENSSL"; outln "\n" + return 1 + elif $OPENSSL engine gost -vvvv -t -c 2>&1 | grep -iq "No such" ; then pr_litemagenta "No engine or GOST support via engine with your $OPENSSL"; outln "\n" return 1 elif echo $osslver | grep -q LibreSSL; then @@ -2868,6 +2871,6 @@ case "$1" in exit $ret ;; esac -# $Id: testssl.sh,v 1.194 2015/02/22 22:05:39 dirkw Exp $ +# $Id: testssl.sh,v 1.195 2015/02/23 09:40:09 dirkw Exp $ # vim:ts=5:sw=5