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

Issue 1994353002: Update CertVerifier::Verify to use RequestParams instead (Closed)

Created:
4 years, 7 months ago by Ryan Sleevi
Modified:
4 years, 6 months ago
Reviewers:
eroman, Kevin M, brettw
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, zea+watch_chromium.org, chromoting-reviews_chromium.org, Peter Beverloo, johnme+watch_chromium.org, oshima+watch_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, davemoore+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, chromium-apps-reviews_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@request_params
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update CertVerifier::Verify to use RequestParams instead CertVerifier::Verify() has some inconsistencies with respect to how it handles additional trust anchors, which complicates the layering and the caching. Rather than just add an additional parameter to Verify(), convert everything to use RequestParams, which also defines how the caching/hashing is done. BUG=612655 TBR=brettw Committed: https://crrev.com/06bd78559d65ac5b38b7bcfd370baf35532e79ea Cr-Commit-Position: refs/heads/master@{#398707}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 10

Patch Set 3 : Review feedback #

Patch Set 4 : I hate GMock #

Patch Set 5 : Fix compile for iOS & tests for others #

Patch Set 6 : Bad tests are bad #

Total comments: 1

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -280 lines) Patch
M blimp/net/exact_match_cert_verifier.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M blimp/net/exact_match_cert_verifier.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc View 1 2 3 4 5 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.cc View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/platform_keys/verify_trust_api.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M ios/web/net/cert_verifier_block_adapter.cc View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M net/cert/cert_verifier.h View 1 2 4 chunks +36 lines, -24 lines 0 comments Download
M net/cert/cert_verifier.cc View 3 chunks +34 lines, -24 lines 0 comments Download
M net/cert/cert_verifier_unittest.cc View 1 2 3 4 5 2 chunks +29 lines, -42 lines 0 comments Download
M net/cert/mock_cert_verifier.h View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M net/cert/mock_cert_verifier.cc View 1 2 3 4 4 chunks +18 lines, -21 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.h View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.cc View 1 2 3 9 chunks +26 lines, -33 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier_unittest.cc View 12 chunks +68 lines, -51 lines 0 comments Download
M net/cert_net/nss_ocsp_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M net/quic/crypto/proof_verifier_chromium.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M net/quic/crypto/proof_verifier_chromium_test.cc View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M net/tools/quic/quic_client_bin.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M net/tools/quic/quic_simple_client_bin.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M remoting/protocol/ssl_hmac_channel_authenticator.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (16 generated)
Ryan Sleevi
Eric: Next stage. I ended up moving everything to use RequestParams now because of issues ...
4 years, 7 months ago (2016-05-19 22:57:21 UTC) #2
eroman
> I'm curious for your thoughts here - that is, whether we should > have ...
4 years, 7 months ago (2016-05-20 00:41:18 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/1994353002/diff/20001/net/cert/cert_verifier.cc File net/cert/cert_verifier.cc (right): https://codereview.chromium.org/1994353002/diff/20001/net/cert/cert_verifier.cc#newcode36 net/cert/cert_verifier.cc:36: // For efficiency sake, rather than compare all of ...
4 years, 7 months ago (2016-05-20 02:39:43 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994353002/80001
4 years, 7 months ago (2016-05-20 06:18:15 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/1994353002/diff/20001/net/cert/cert_verifier.cc File net/cert/cert_verifier.cc (right): https://codereview.chromium.org/1994353002/diff/20001/net/cert/cert_verifier.cc#newcode36 net/cert/cert_verifier.cc:36: // For efficiency sake, rather than compare all of ...
4 years, 7 months ago (2016-05-20 06:27:36 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/204131) linux_chromium_chromeos_ozone_rel_ng on ...
4 years, 7 months ago (2016-05-20 06:36:18 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994353002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994353002/100001
4 years, 7 months ago (2016-05-20 08:00:46 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 09:07:48 UTC) #13
Ryan Sleevi
Ping? :)
4 years, 7 months ago (2016-05-25 07:12:42 UTC) #14
Kevin M
blimp lgtm
4 years, 7 months ago (2016-05-25 17:17:11 UTC) #16
eroman
lgtm https://codereview.chromium.org/1994353002/diff/100001/net/cert/cert_verifier.h File net/cert/cert_verifier.h (right): https://codereview.chromium.org/1994353002/diff/100001/net/cert/cert_verifier.h#newcode89 net/cert/cert_verifier.h:89: // brackets, such as "[::1]". Good comment, thanks! ...
4 years, 7 months ago (2016-05-26 00:03:44 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994353002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1994353002/100001
4 years, 7 months ago (2016-05-27 04:51:36 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-27 06:21:28 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994353002/120001
4 years, 6 months ago (2016-06-08 20:55:19 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 22:17:45 UTC) #25
Ryan Sleevi
Brett: TBRing this to you; it's just an interface change in //net that propagates to ...
4 years, 6 months ago (2016-06-08 22:28:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994353002/120001
4 years, 6 months ago (2016-06-08 22:29:10 UTC) #31
brettw
rs lgtm
4 years, 6 months ago (2016-06-08 22:30:13 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-08 22:35:02 UTC) #34
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 22:36:07 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/06bd78559d65ac5b38b7bcfd370baf35532e79ea
Cr-Commit-Position: refs/heads/master@{#398707}

Powered by Google App Engine
This is Rietveld 408576698