mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Added Python version checking and changed behavior in Python2.7.9+ to use custom certificate for target server inherited from command line argument. In Python versions < 2.7.9, proxy_server.py does not perform certificate validation of the target server. As that is not part of what the current tests using this script require, that is currently OK. In Python versions > 2.7.9 (SSLContext was added in 2.7.9), the same code actually does check the certificate, using the system's trusted CAs. As a result, since we are using custom certificates, we need to either disable certificate checking in 2.7.9 or load the specific CA for target test server, using the SSLContext and create_default_context functionality also added in 2.7.9. It is easier to do the latter, so the behavior in 2.7.9+ is to check the cert and below 2.7.9 is not to. Note that we do not support Python < 2.7. SSLContext is also available in all Python3 versions that we support. Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com> |
||
|---|---|---|
| .. | ||
| repository_data | ||
| ssl_certs | ||
| .coveragerc | ||
| __init__.py | ||
| aggregate_tests.py | ||
| proxy_server.py | ||
| simple_https_server.py | ||
| simple_server.py | ||
| slow_retrieval_server.py | ||
| test_arbitrary_package_attack.py | ||
| test_developer_tool.py | ||
| test_download.py | ||
| test_endless_data_attack.py | ||
| test_exceptions.py | ||
| test_extraneous_dependencies_attack.py | ||
| test_formats.py | ||
| test_indefinite_freeze_attack.py | ||
| test_init.py | ||
| test_key_revocation_integration.py | ||
| test_keydb.py | ||
| test_log.py | ||
| test_mirrors.py | ||
| test_mix_and_match_attack.py | ||
| test_multiple_repositories_integration.py | ||
| test_proxy_use.py | ||
| test_replay_attack.py | ||
| test_repository_lib.py | ||
| test_repository_tool.py | ||
| test_roledb.py | ||
| test_root_versioning_integration.py | ||
| test_sig.py | ||
| test_slow_retrieval_attack.py | ||
| test_unittest_toolbox.py | ||
| test_updater.py | ||
| test_updater_root_rotation_integration.py | ||