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

Issue 2078653002: Add an out parameter to VerifyCertificateChain for retrieving the trusted chain. (Closed)

Created:
4 years, 6 months ago by ryanchung
Modified:
4 years, 6 months ago
Reviewers:
eroman, sheretov, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an out parameter to VerifyCertificateChain for retrieving the trusted chain. Until certificate path building is available, this will be temporarily used to obtain the full chain built by VerifyCertificateChain. BUG=618463 Committed: https://crrev.com/a758ec2ba845713d654a75c2c0251d460244c58d Cr-Commit-Position: refs/heads/master@{#400396}

Patch Set 1 #

Patch Set 2 #

Total comments: 7

Patch Set 3 : Added test and made suggested changes #

Total comments: 4

Patch Set 4 : Fixed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -10 lines) Patch
M components/cast_certificate/cast_cert_validator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/cert/internal/verify_certificate_chain.h View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M net/cert/internal/verify_certificate_chain.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_pkits_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/cert/internal/verify_certificate_chain_unittest.cc View 1 2 3 2 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
ryanchung
4 years, 6 months ago (2016-06-16 21:54:41 UTC) #3
mattm
https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc File net/cert/internal/verify_certificate_chain.cc (right): https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc#newcode501 net/cert/internal/verify_certificate_chain.cc:501: *trusted_chain_out = full_chain; Does *trusted_chain_out = std::move(full_chain) work?
4 years, 6 months ago (2016-06-16 22:08:46 UTC) #4
eroman
LGTM after adding some testing. https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc File net/cert/internal/verify_certificate_chain.cc (right): https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc#newcode501 net/cert/internal/verify_certificate_chain.cc:501: *trusted_chain_out = full_chain; On ...
4 years, 6 months ago (2016-06-16 22:11:36 UTC) #5
ryanchung
Thanks. https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc File net/cert/internal/verify_certificate_chain.cc (right): https://codereview.chromium.org/2078653002/diff/20001/net/cert/internal/verify_certificate_chain.cc#newcode501 net/cert/internal/verify_certificate_chain.cc:501: *trusted_chain_out = full_chain; On 2016/06/16 22:11:36, eroman wrote: ...
4 years, 6 months ago (2016-06-16 22:47:09 UTC) #6
eroman
lgtm https://codereview.chromium.org/2078653002/diff/40001/net/cert/internal/verify_certificate_chain_unittest.cc File net/cert/internal/verify_certificate_chain_unittest.cc (right): https://codereview.chromium.org/2078653002/diff/40001/net/cert/internal/verify_certificate_chain_unittest.cc#newcode121 net/cert/internal/verify_certificate_chain_unittest.cc:121: ASSERT_EQ(trusted_chain.size(), input_chain.size() + 1); This is true for ...
4 years, 6 months ago (2016-06-16 22:55:01 UTC) #7
ryanchung
https://codereview.chromium.org/2078653002/diff/40001/net/cert/internal/verify_certificate_chain_unittest.cc File net/cert/internal/verify_certificate_chain_unittest.cc (right): https://codereview.chromium.org/2078653002/diff/40001/net/cert/internal/verify_certificate_chain_unittest.cc#newcode121 net/cert/internal/verify_certificate_chain_unittest.cc:121: ASSERT_EQ(trusted_chain.size(), input_chain.size() + 1); On 2016/06/16 22:55:01, eroman wrote: ...
4 years, 6 months ago (2016-06-16 23:13:09 UTC) #8
ryanchung
+sheretov for components/cast_certificate Thanks.
4 years, 6 months ago (2016-06-16 23:21:38 UTC) #10
sheretov
On 2016/06/16 23:21:38, ryanchung wrote: > +sheretov for components/cast_certificate > > Thanks. components/cast_certificate lgtm
4 years, 6 months ago (2016-06-17 01:00:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078653002/60001
4 years, 6 months ago (2016-06-17 01:03:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/89150)
4 years, 6 months ago (2016-06-17 02:38:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078653002/60001
4 years, 6 months ago (2016-06-17 08:19:16 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-17 08:23:22 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 08:25:10 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a758ec2ba845713d654a75c2c0251d460244c58d
Cr-Commit-Position: refs/heads/master@{#400396}

Powered by Google App Engine
This is Rietveld 408576698