Fix FIPS SSLv2 test
authorDr. Stephen Henson <steve@openssl.org>
Sat, 26 Mar 2016 15:00:53 +0000 (15:00 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 26 Mar 2016 16:02:39 +0000 (16:02 +0000)
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(cherry picked from commit 21211ade53f92629250bbea5e37d9179a31d3be2)

test/testfipsssl

index c4836edc259ae083802473411338d6ea764d63c1..b8bbb259365dde48ad02be5ae579dc12c4840120 100644 (file)
@@ -38,8 +38,12 @@ fi
 echo test ssl3 is forbidden in FIPS mode
 $ssltest -ssl3 $extra && exit 1
 
-echo test ssl2 is forbidden in FIPS mode
-$ssltest -ssl2 $extra && exit 1
+if ../util/shlib_wrap.sh ../apps/openssl ciphers SSLv2 >/dev/null 2>&1; then
+    echo test ssl2 is forbidden in FIPS mode
+    $ssltest -ssl2 $extra && exit 1
+else
+    echo ssl2 disabled: skipping test
+fi
 
 echo test tls1
 $ssltest -tls1 $extra || exit 1