tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1898B)


      1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
      2 # vim: set filetype=python:
      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/.
      6 
      7 
      8 @template
      9 def PDFVerificationCertGen(name, specification):
     10     if not CONFIG["COMPILE_ENVIRONMENT"]:
     11         return
     12 
     13     GENERATED_FILES += [name]
     14     props = GENERATED_FILES[name]
     15     props.script = "/security/manager/tools/pycms.py"
     16     props.inputs = [specification]
     17     files = TEST_HARNESS_FILES.xpcshell
     18     for part in RELATIVEDIR.split("/"):
     19         files = files[part]
     20     files += ["!%s" % name]
     21 
     22 
     23 # The first argument is the output, the second argument is the specification used to generate the cms message
     24 # PDFVerificationCertGen('cert_correct.p7s', 'cert_correct.pkcs7spec')
     25 # PDFVerificationCertGen('no_certificate.p7s', 'no_certificate.pkcs7spec')
     26 # PDFVerificationCertGen('no_signer_info.p7s', 'no_signer_info.pkcs7spec')
     27 # PDFVerificationCertGen('md5_signer_info.p7s', 'md5_signer_info.pkcs7spec')
     28 # PDFVerificationCertGen('cert_sha2_wrong_len.p7s', 'cert_sha2_wrong_len.pkcs7spec')
     29 # PDFVerificationCertGen('two_correct_signatures.p7s', 'two_correct_signatures.pkcs7spec')
     30 # PDFVerificationCertGen('cert_with_incorrect_signature.p7s', 'cert_with_incorrect_signature.pkcs7spec')
     31 # PDFVerificationCertGen('one_correct_one_incorrect_hash.p7s', 'one_correct_one_incorrect_hash.pkcs7spec')
     32 # PDFVerificationCertGen('one_correct_one_incorrect_signature.p7s', 'one_correct_one_incorrect_signature.pkcs7spec')
     33 # PDFVerificationCertGen('certificate_two_data_inputs.p7s', 'certificate_two_data_inputs.pkcs7spec')
     34 
     35 # To generate a new entry, add PDFVerificationCertGen, run mach build and copy from
     36 # objdir/_tests/xpcshell/security/manager/ssl/tests/unit/test_pdf_verification/
     37 # to this directory.