Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 #! /bin/bash
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 ########################################################################
8 #
9 # mozilla/security/nss/tests/ocsp/ocsp.sh
10 #
11 # Script to test NSS OCSP
12 #
13 # needs to work on all Unix and Windows platforms
14 #
15 # special strings
16 # ---------------
17 # FIXME ... known problems, search for this string
18 # NOTE .... unexpected behavior
19 #
20 ########################################################################
22 ############################## ssl_init ################################
23 # local shell function to initialize this script
24 ########################################################################
25 ocsp_init()
26 {
27 SCRIPTNAME=ocsp.sh # sourced - $0 would point to all.sh
29 if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
30 CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
31 fi
33 if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
34 cd ../common
35 . ./init.sh
36 fi
37 if [ -z "${IOPR_OCSP_SOURCED}" ]; then
38 . ../iopr/ocsp_iopr.sh
39 fi
40 if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here
41 cd ../cert
42 . ./cert.sh
43 fi
44 SCRIPTNAME=ocsp.sh
45 echo "$SCRIPTNAME: OCSP tests ==============================="
47 REQF=${QADIR}/ssl/sslreq.dat
49 cd ${CLIENTDIR}
50 }
52 ################## main #################################################
53 ocsp_init
54 ocsp_iopr_run