Blame SOURCES/Bug-1001841-disable-sslv2-tests.patch

b31f4f
diff -up ./tests/ssl/ssl.sh.disableSSL2tests ./tests/ssl/ssl.sh
b31f4f
--- ./tests/ssl/ssl.sh.disableSSL2tests	2021-05-28 02:50:43.000000000 -0700
b31f4f
+++ ./tests/ssl/ssl.sh	2021-06-03 15:22:02.725514179 -0700
b31f4f
@@ -88,9 +88,14 @@ ssl_init()
744490
   NSS_SSL_RUN=${NSS_SSL_RUN:-$nss_ssl_run}
e4d72e
 
652e94
   # Test case files
744490
-  SSLCOV=${QADIR}/ssl/sslcov.txt
2533fc
+  if [ "${NSS_NO_SSL2}" = "1" ]; then
2533fc
+    SSLCOV=${QADIR}/ssl/sslcov.noSSL2orExport.txt
2533fc
+    SSLSTRESS=${QADIR}/ssl/sslstress.noSSL2orExport.txt
2533fc
+  else
2533fc
+    SSLCOV=${QADIR}/ssl/sslcov.txt
2533fc
+    SSLSTRESS=${QADIR}/ssl/sslstress.txt
2533fc
+  fi
1b6f66
   SSLAUTH=${QADIR}/ssl/sslauth.txt
1b6f66
-  SSLSTRESS=${QADIR}/ssl/sslstress.txt
5f1c2b
   SSLPOLICY=${QADIR}/ssl/sslpolicy.txt
652e94
   REQUEST_FILE=${QADIR}/ssl/sslreq.dat
652e94
 
b31f4f
@@ -159,7 +164,11 @@ is_selfserv_alive()
652e94
   fi
652e94
 
5f1c2b
   echo "kill -0 ${PID} >/dev/null 2>/dev/null"
1b6f66
+  if [ "${NSS_NO_SSL2}" = "1" ] && [[ ${EXP} -eq 0 || ${SSL2} -eq 0 ]]; then
652e94
+  echo "No server to kill"
652e94
+  else
652e94
   kill -0 ${PID} >/dev/null 2>/dev/null || Exit 10 "Fatal - selfserv process not detectable"
652e94
+  fi
652e94
 
652e94
   echo "selfserv with PID ${PID} found at `date`"
652e94
 }
b31f4f
@@ -183,7 +192,11 @@ wait_for_selfserv()
7f4443
       ${BINDIR}/tstclnt -4 -p ${PORT} -h ${HOSTADDR} ${CLIENT_OPTIONS} -q \
5f1c2b
               -d ${P_R_CLIENTDIR} $verbose < ${REQUEST_FILE}
652e94
       if [ $? -ne 0 ]; then
1b6f66
+          if [ "${NSS_NO_SSL2}" = "1" ] && [[ ${EXP} -eq 0 || ${SSL2} -eq 0 ]]; then
652e94
+              html_passed "Server never started"
652e94
+          else
652e94
           html_failed "Waiting for Server"
652e94
+          fi
652e94
       fi
652e94
   fi
652e94
   is_selfserv_alive
b31f4f
@@ -332,6 +345,12 @@ ssl_cov()
5f1c2b
       echo "${testname}" | grep "EXPORT" > /dev/null
5f1c2b
       EXP=$?
f57139
 
5f1c2b
+      #  skip export tests
5f1c2b
+      if [ ${EXP} -eq 0 ]; then
5f1c2b
+         echo "export test skipped"
1b6f66
+         continue
1b6f66
+      fi
f57139
+
e4d72e
       # RSA-PSS tests are handled in a separate function
e4d72e
       case $testname in
e4d72e
         *RSA-PSS)