mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
de06436cd7
Unfortunately, since the new ecdsa library has a different interface and slightly different inner workings compared to the old PyECC library, the changes to support this update are not trivial. Luckily the ecdsa library is extensible enough to allow us to adjust the library's functionality with function parameters rather than monkey-patching, as we were doing with the previous version of the code. All of these interface changes are in addition to the normal rote Python 3 updates. This was tested by running a build with and without this patch and ensuring there were no unexpected diffs. Differential Revision: https://phabricator.services.mozilla.com/D70117
34 lines
1.3 KiB
Python
34 lines
1.3 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
@template
|
|
def GeneratedTestCertificate(name):
|
|
if not CONFIG['COMPILE_ENVIRONMENT']:
|
|
return
|
|
GeneratedFile(name, script='/security/manager/ssl/tests/unit/pycert.py',
|
|
inputs=['%s.certspec' % name])
|
|
# Turn RELATIVEDIR into list entry: like
|
|
# 'security/manager/ssl/tests/unit/bad_certs' ->
|
|
# TEST_HARNESS_FILES.xpcshell.security.manager.ssl.tests.unit.bad_certs.
|
|
files = TEST_HARNESS_FILES.xpcshell
|
|
for part in RELATIVEDIR.split('/'):
|
|
files = files[part]
|
|
files += ['!%s' % name]
|
|
|
|
@template
|
|
def GeneratedTestKey(name):
|
|
if not CONFIG['COMPILE_ENVIRONMENT']:
|
|
return
|
|
GeneratedFile(name, script='/security/manager/ssl/tests/unit/pykey.py',
|
|
inputs=['%s.keyspec' % name])
|
|
# Turn RELATIVEDIR into list entry: like
|
|
# 'security/manager/ssl/tests/unit/bad_certs' ->
|
|
# TEST_HARNESS_FILES.xpcshell.security.manager.ssl.tests.unit.bad_certs.
|
|
files = TEST_HARNESS_FILES.xpcshell
|
|
for part in RELATIVEDIR.split('/'):
|
|
files = files[part]
|
|
files += ['!%s' % name]
|