1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/ocsp/ocsp.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +#! /bin/bash 1.5 +# 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +######################################################################## 1.11 +# 1.12 +# mozilla/security/nss/tests/ocsp/ocsp.sh 1.13 +# 1.14 +# Script to test NSS OCSP 1.15 +# 1.16 +# needs to work on all Unix and Windows platforms 1.17 +# 1.18 +# special strings 1.19 +# --------------- 1.20 +# FIXME ... known problems, search for this string 1.21 +# NOTE .... unexpected behavior 1.22 +# 1.23 +######################################################################## 1.24 + 1.25 +############################## ssl_init ################################ 1.26 +# local shell function to initialize this script 1.27 +######################################################################## 1.28 +ocsp_init() 1.29 +{ 1.30 + SCRIPTNAME=ocsp.sh # sourced - $0 would point to all.sh 1.31 + 1.32 + if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for 1.33 + CLEANUP="${SCRIPTNAME}" # cleaning this script will do it 1.34 + fi 1.35 + 1.36 + if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then 1.37 + cd ../common 1.38 + . ./init.sh 1.39 + fi 1.40 + if [ -z "${IOPR_OCSP_SOURCED}" ]; then 1.41 + . ../iopr/ocsp_iopr.sh 1.42 + fi 1.43 + if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here 1.44 + cd ../cert 1.45 + . ./cert.sh 1.46 + fi 1.47 + SCRIPTNAME=ocsp.sh 1.48 + echo "$SCRIPTNAME: OCSP tests ===============================" 1.49 + 1.50 + REQF=${QADIR}/ssl/sslreq.dat 1.51 + 1.52 + cd ${CLIENTDIR} 1.53 +} 1.54 + 1.55 +################## main ################################################# 1.56 +ocsp_init 1.57 +ocsp_iopr_run