Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py

Issue 2225493003: Don't treat trust anchors as certificates during path building. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address moar feedback Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py
diff --git a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py
index 149c000cff6b4dfe826327e3459a5ccb8c0c0565..b762d594b75d3921732bbf22b7ee535a35eb67f2 100755
--- a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py
+++ b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py
@@ -4,7 +4,8 @@
# found in the LICENSE file.
"""Certificate chain with 2 intermediates and one end entity certificate. The
-root certificate has a pathlen:1 restriction so this is an invalid chain."""
+root certificate has a pathlen:1 restriction. Ordinarily this would be an
+invalid chain, however constraints on trust anchors are not validated."""
import common
@@ -26,6 +27,6 @@ target = common.create_end_entity_certificate('Target', intermediate2)
chain = [target, intermediate2, intermediate1]
trusted = [root]
time = common.DEFAULT_TIME
-verify_result = False
+verify_result = True
common.write_test_file(__doc__, chain, trusted, time, verify_result)

Powered by Google App Engine
This is Rietveld 408576698