security/nss/tests/ocsp/ocsp.sh

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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

mercurial