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

Issue 2627523002: Refactor the assignment of CertVerifyResult::has_md2, etc. (Closed)

Created:
3 years, 11 months ago by eroman
Modified:
3 years, 11 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor 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() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -236 lines) Patch
M net/cert/cert_verify_proc.h View 3 chunks +11 lines, -19 lines 0 comments Download
M net/cert/cert_verify_proc.cc View 1 2 3 4 3 chunks +65 lines, -28 lines 0 comments Download
M net/cert/cert_verify_proc_android.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M net/cert/cert_verify_proc_ios.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M net/cert/cert_verify_proc_mac.cc View 5 chunks +45 lines, -44 lines 0 comments Download
M net/cert/cert_verify_proc_nss.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/cert/cert_verify_proc_openssl.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 2 3 4 5 7 chunks +90 lines, -117 lines 0 comments Download
M net/cert/cert_verify_proc_win.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (22 generated)
eroman
3 years, 11 months ago (2017-01-10 01:31:14 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/2627523002/diff/1/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2627523002/diff/1/net/cert/cert_verify_proc.cc#newcode375 net/cert/cert_verify_proc.cc:375: bool is_leaf, Two suggested changes: 1) It seems like ...
3 years, 11 months ago (2017-01-10 01:53:24 UTC) #6
eroman
https://codereview.chromium.org/2627523002/diff/1/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2627523002/diff/1/net/cert/cert_verify_proc.cc#newcode375 net/cert/cert_verify_proc.cc:375: bool is_leaf, On 2017/01/10 01:53:24, Ryan Sleevi wrote: > ...
3 years, 11 months ago (2017-01-10 02:48:46 UTC) #10
Ryan Sleevi
LGTM, great cleanup overall, one supppper tiny nit https://codereview.chromium.org/2627523002/diff/60001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2627523002/diff/60001/net/cert/cert_verify_proc.cc#newcode413 net/cert/cert_verify_proc.cc:413: // ...
3 years, 11 months ago (2017-01-10 03:00:42 UTC) #14
eroman
https://codereview.chromium.org/2627523002/diff/60001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2627523002/diff/60001/net/cert/cert_verify_proc.cc#newcode413 net/cert/cert_verify_proc.cc:413: // If there are no intermediates, then the leaf ...
3 years, 11 months ago (2017-01-10 03:06:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627523002/100001
3 years, 11 months ago (2017-01-10 07:09:27 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 07:13:50 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/accb81312b4555356dd49253d156...

Powered by Google App Engine
This is Rietveld 408576698