Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/bin/sh |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | # |
michael@0 | 7 | # libpkix_init_nist.sh |
michael@0 | 8 | # |
michael@0 | 9 | |
michael@0 | 10 | # |
michael@0 | 11 | # Any test that uses NIST files should have a tag of either NIST-Test or |
michael@0 | 12 | # NIST-Test-Files-Used at the command option so if there are no NIST files |
michael@0 | 13 | # installed in the system, the test can be skipped |
michael@0 | 14 | # |
michael@0 | 15 | |
michael@0 | 16 | if [ -z "${NIST_FILES_DIR}" ] ; then |
michael@0 | 17 | Display "" |
michael@0 | 18 | Display "*******************************************************************************" |
michael@0 | 19 | Display "The environment variable NIST_FILES_DIR is not defined. Therefore" |
michael@0 | 20 | Display "tests depending on it will be skipped. To enable these tests set" |
michael@0 | 21 | Display "NIST_FILES_DIR to the directory where NIST Certificates and CRLs" |
michael@0 | 22 | Display "are located." |
michael@0 | 23 | Display "*******************************************************************************" |
michael@0 | 24 | Display "" |
michael@0 | 25 | doNIST=0 |
michael@0 | 26 | else |
michael@0 | 27 | |
michael@0 | 28 | NIST=${NIST_FILES_DIR} |
michael@0 | 29 | doNIST=1 |
michael@0 | 30 | fi |
michael@0 | 31 | |
michael@0 | 32 | # |
michael@0 | 33 | # Any tests that use NIST Path Discovery files should have a tag of NIST-PDTest |
michael@0 | 34 | # at the command option so if there are no NIST Path Discovery files |
michael@0 | 35 | # installed in the system, the test can be skipped |
michael@0 | 36 | # |
michael@0 | 37 | if [ ${doPD} -eq 1 -a -z "${PDVAL}" ] ; then |
michael@0 | 38 | |
michael@0 | 39 | Display "" |
michael@0 | 40 | Display "*******************************************************************************" |
michael@0 | 41 | Display "The environment variable PDVAL is not defined. Therefore tests" |
michael@0 | 42 | Display "depending on it will be skipped. To enable these tests set PDVAL to" |
michael@0 | 43 | Display "the directory where NIST Path Discovery Certificates are located." |
michael@0 | 44 | Display "*******************************************************************************" |
michael@0 | 45 | Display "" |
michael@0 | 46 | doNIST_PDTest=0 |
michael@0 | 47 | else |
michael@0 | 48 | |
michael@0 | 49 | NIST_PDTEST=${PDVAL} |
michael@0 | 50 | doNIST_PDTest=1 |
michael@0 | 51 | fi |
michael@0 | 52 | |
michael@0 | 53 | # |
michael@0 | 54 | # Any tests that use an OCSP Server should have a tag of OCSP-Test at the |
michael@0 | 55 | # command option so if there is no OCSP Server installed in the system, the |
michael@0 | 56 | # test can be skipped |
michael@0 | 57 | # |
michael@0 | 58 | if [ ${doOCSP} -eq 1 -a -z "${OCSP}" ] ; then |
michael@0 | 59 | |
michael@0 | 60 | Display "" |
michael@0 | 61 | Display "*******************************************************************************" |
michael@0 | 62 | Display "The environment variable OCSP is not defined. Therefore tests" |
michael@0 | 63 | Display "depending on it will be skipped. To enable these tests set OCSP" |
michael@0 | 64 | Display "non-NULL (the actual URI used is taken from the AIA extension)." |
michael@0 | 65 | Display "*******************************************************************************" |
michael@0 | 66 | Display "" |
michael@0 | 67 | doOCSPTest=0 |
michael@0 | 68 | else |
michael@0 | 69 | doOCSPTest=1 |
michael@0 | 70 | fi |