From: Rich Salz <rsalz@akamai.com>
Date: Sat, 13 Jun 2015 21:18:47 +0000 (-0400)
Subject: RT3907: avoid "local" in testssl script
X-Git-Tag: OpenSSL_1_0_2d~18
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57bd71b45b39d4eedece0b0289c3a8173280e540;p=oweals%2Fopenssl.git

RT3907: avoid "local" in testssl script

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 75ba5c58c6b3b3326a6c3198100830afa120e7c3)
---

diff --git a/test/testssl b/test/testssl
index ddebf08534..699ce148b2 100644
--- a/test/testssl
+++ b/test/testssl
@@ -146,11 +146,10 @@ echo test sslv2/sslv3 with both client and server authentication via BIO pair an
 $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1
 
 test_cipher() {
-  local cipher=$1
-  local protocol=$2
+    _cipher=$1
     echo "Testing $cipher"
     prot=""
-    if [ $protocol = "SSLv3" ] ; then
+    if [ $2 = "SSLv3" ] ; then
       prot="-ssl3"
     fi
     $ssltest -cipher $cipher $prot