| Index: net/data/verify_certificate_chain_unittest/generate-target-has-pathlen-but-not-ca.py
|
| diff --git a/net/data/verify_certificate_chain_unittest/generate-target-has-pathlen-but-not-ca.py b/net/data/verify_certificate_chain_unittest/generate-target-has-pathlen-but-not-ca.py
|
| index 558e98cf8e813b72fcc57256fada20f18ab895ce..3063955becaf66d1ebb5ea93efaf79adf45d3965 100755
|
| --- a/net/data/verify_certificate_chain_unittest/generate-target-has-pathlen-but-not-ca.py
|
| +++ b/net/data/verify_certificate_chain_unittest/generate-target-has-pathlen-but-not-ca.py
|
| @@ -9,7 +9,7 @@ expected to fail, since pathlen should only be set for CAs."""
|
|
|
| import common
|
|
|
| -# Self-signed root certificate (part of trust store).
|
| +# Self-signed root certificate (used as trust anchor).
|
| root = common.create_self_signed_root_certificate('Root')
|
|
|
| # Intermediate certificate.
|
| @@ -21,9 +21,12 @@ target.get_extensions().set_property('basicConstraints',
|
| 'critical,CA:false,pathlen:1')
|
|
|
|
|
| -chain = [target, intermediate]
|
| -trusted = [root]
|
| -time = common.DEFAULT_TIME
|
| -verify_result = False
|
| +# Write the test chain to a file.
|
| +test = common.TestData()
|
| +test.description = __doc__
|
| +test.chain = [target, intermediate]
|
| +test.trust_anchor = common.TrustAnchor(root, constrained=False)
|
| +test.utc_time = common.DEFAULT_TIME
|
| +test.verify_result = False
|
|
|
| -common.write_test_file(__doc__, chain, trusted, time, verify_result)
|
| +test.write_to_file(common.get_default_pem_path())
|
|
|