Re-structure to share more common code

Change-Id: I5034485f7511238d083c2725fbef8818d33ffb07
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh
index aafe0e0..c7d5aa4 100755
--- a/tests/ssl-opt.sh
+++ b/tests/ssl-opt.sh
@@ -86,6 +86,7 @@
 else
     O_NEXT_SRV=false
     O_NEXT_SRV_NO_CERT=false
+    O_NEXT_CLI_NO_CERT=false
     O_NEXT_CLI=false
 fi