DescriptionRefactor the assignment of CertVerifyResult::has_md2, etc.
This allows unconditionally enabling the tests in
cert_verify_proc_unittest.cc,
Previously the assignment of weak hash algorithms was done by each
CertVerifyProc::VerifyInternal() implementation, whereas now it is
done internally by CertVerifyProc::Verify() after VerifyInternal() has
run.
The downside to this approach is that at this layer there is ambiguity
as to which certificates are trusted and hence should be skipped for
determining if the chain contains weak hash algorithms.
This ambiguity results in some differences in the reporting of
"has_md2", "has_md4", "has_md5", "hash_sha1", "has_sha1_leaf" when
verification has failed (The final intermediate is assumed to be the
trust anchor and is skipped).
BUG=649017
Review-Url: https://codereview.chromium.org/2627523002
Cr-Commit-Position: refs/heads/master@{#442522}
Committed: https://chromium.googlesource.com/chromium/src/+/accb81312b4555356dd49253d156e4a8b9eac784
Patch Set 1 #
Total comments: 12
Patch Set 2 : Address rsleevi's comments #Patch Set 3 : grammar #Patch Set 4 : consistency: hashing --> hash #
Total comments: 2
Patch Set 5 : update comment #Patch Set 6 : fix PrintTo() #
Depends on Patchset: Messages
Total messages: 29 (22 generated)
|