michael@0: #! /bin/bash michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ######################################################################## michael@0: # michael@0: # mozilla/security/nss/tests/ocsp/ocsp.sh michael@0: # michael@0: # Script to test NSS OCSP michael@0: # michael@0: # needs to work on all Unix and Windows platforms michael@0: # michael@0: # special strings michael@0: # --------------- michael@0: # FIXME ... known problems, search for this string michael@0: # NOTE .... unexpected behavior michael@0: # michael@0: ######################################################################## michael@0: michael@0: ############################## ssl_init ################################ michael@0: # local shell function to initialize this script michael@0: ######################################################################## michael@0: ocsp_init() michael@0: { michael@0: SCRIPTNAME=ocsp.sh # sourced - $0 would point to all.sh michael@0: michael@0: if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for michael@0: CLEANUP="${SCRIPTNAME}" # cleaning this script will do it michael@0: fi michael@0: michael@0: if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then michael@0: cd ../common michael@0: . ./init.sh michael@0: fi michael@0: if [ -z "${IOPR_OCSP_SOURCED}" ]; then michael@0: . ../iopr/ocsp_iopr.sh michael@0: fi michael@0: if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here michael@0: cd ../cert michael@0: . ./cert.sh michael@0: fi michael@0: SCRIPTNAME=ocsp.sh michael@0: echo "$SCRIPTNAME: OCSP tests ===============================" michael@0: michael@0: REQF=${QADIR}/ssl/sslreq.dat michael@0: michael@0: cd ${CLIENTDIR} michael@0: } michael@0: michael@0: ################## main ################################################# michael@0: ocsp_init michael@0: ocsp_iopr_run