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

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)

Created:
3 years, 8 months ago by eroman
Modified:
3 years, 7 months ago
Reviewers:
dougsteed, ryanchung, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org, mac-reviews_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. * Make TrustStore implement CertIssuerSource * Add a method for getting trust/distrust of a certificate * Remove the TrustAnchor abstraction All the integrations (including CertVerifyProc) required full certificates anyway, so TrustAnchor ended up being more of a hindrance than benefit. BUG=649017 TBR=dougsteed@chromium.org Review-Url: https://codereview.chromium.org/2832703002 Cr-Commit-Position: refs/heads/master@{#468175} Committed: https://chromium.googlesource.com/chromium/src/+/2a938c3d286c77d7b769a9b7dc31bab8a309d19b

Patch Set 1 #

Patch Set 2 : mac fix #

Total comments: 4

Patch Set 3 : Switch to different design (removes TrustAnchor) #

Patch Set 4 : fix cert_verify_tool #

Total comments: 11

Patch Set 5 : address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1048 lines, -966 lines) Patch
M components/cast_certificate/cast_cert_validator.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M components/cast_certificate/cast_cert_validator_test_helpers.cc View 1 2 1 chunk +1 line, -3 lines 3 comments Download
M components/cast_certificate/cast_cert_validator_unittest.cc View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M components/cast_certificate/cast_crl.cc View 1 2 3 chunks +6 lines, -16 lines 0 comments Download
M net/BUILD.gn View 1 2 4 chunks +0 lines, -6 lines 0 comments Download
M net/cert/cert_verify_proc_builtin.cc View 1 2 5 chunks +8 lines, -27 lines 0 comments Download
M net/cert/internal/cert_errors.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
D net/cert/internal/cert_issuer_source_nss.h View 1 chunk +0 lines, -40 lines 0 comments Download
D net/cert/internal/cert_issuer_source_nss.cc View 1 chunk +0 lines, -65 lines 0 comments Download
D net/cert/internal/cert_issuer_source_nss_unittest.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M net/cert/internal/path_builder.h View 1 2 3 chunks +11 lines, -6 lines 0 comments Download
M net/cert/internal/path_builder.cc View 1 2 3 4 17 chunks +147 lines, -90 lines 0 comments Download
M net/cert/internal/path_builder_pkits_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M net/cert/internal/path_builder_unittest.cc View 1 2 39 chunks +100 lines, -111 lines 0 comments Download
M net/cert/internal/path_builder_verify_certificate_chain_unittest.cc View 1 2 3 4 1 chunk +15 lines, -1 line 0 comments Download
M net/cert/internal/system_trust_store.h View 1 2 2 chunks +8 lines, -26 lines 0 comments Download
M net/cert/internal/system_trust_store.cc View 1 2 5 chunks +15 lines, -35 lines 0 comments Download
M net/cert/internal/test_helpers.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M net/cert/internal/test_helpers.cc View 1 2 5 chunks +10 lines, -7 lines 0 comments Download
M net/cert/internal/trust_store.h View 1 2 3 4 1 chunk +40 lines, -100 lines 0 comments Download
M net/cert/internal/trust_store.cc View 1 2 3 4 1 chunk +58 lines, -18 lines 0 comments Download
M net/cert/internal/trust_store_collection.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M net/cert/internal/trust_store_collection.cc View 1 2 3 4 1 chunk +25 lines, -3 lines 0 comments Download
M net/cert/internal/trust_store_collection_unittest.cc View 1 2 3 4 4 chunks +103 lines, -21 lines 0 comments Download
M net/cert/internal/trust_store_in_memory.h View 1 2 3 4 2 chunks +37 lines, -13 lines 0 comments Download
M net/cert/internal/trust_store_in_memory.cc View 1 2 3 4 1 chunk +50 lines, -13 lines 0 comments Download
M net/cert/internal/trust_store_mac.h View 1 2 2 chunks +5 lines, -8 lines 0 comments Download
M net/cert/internal/trust_store_mac.cc View 1 2 3 4 4 chunks +45 lines, -38 lines 0 comments Download
M net/cert/internal/trust_store_mac_unittest.cc View 1 2 4 chunks +17 lines, -35 lines 0 comments Download
M net/cert/internal/trust_store_nss.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M net/cert/internal/trust_store_nss.cc View 1 2 3 4 3 chunks +59 lines, -19 lines 0 comments Download
M net/cert/internal/trust_store_nss_unittest.cc View 1 2 6 chunks +140 lines, -54 lines 0 comments Download
M net/cert/internal/verify_certificate_chain.h View 1 2 3 chunks +33 lines, -14 lines 0 comments Download
M net/cert/internal/verify_certificate_chain.cc View 1 2 3 4 10 chunks +84 lines, -56 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_pkits_unittest.cc View 1 2 1 chunk +4 lines, -9 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_unittest.cc View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M net/data/verify_certificate_chain_unittest/constrained-root-bad-eku.pem View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M net/data/verify_certificate_chain_unittest/generate-constrained-root-bad-eku.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/tools/cert_verify_tool/verify_using_path_builder.cc View 1 2 3 5 chunks +1 line, -36 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
eroman
3 years, 8 months ago (2017-04-20 01:16:09 UTC) #6
mattm
https://codereview.chromium.org/2832703002/diff/20001/net/cert/internal/trust_store.h File net/cert/internal/trust_store.h (right): https://codereview.chromium.org/2832703002/diff/20001/net/cert/internal/trust_store.h#newcode123 net/cert/internal/trust_store.h:123: // [1] The identified trust anchors and itermediates are ...
3 years, 8 months ago (2017-04-20 03:19:07 UTC) #9
eroman
https://codereview.chromium.org/2832703002/diff/20001/net/cert/internal/trust_store.h File net/cert/internal/trust_store.h (right): https://codereview.chromium.org/2832703002/diff/20001/net/cert/internal/trust_store.h#newcode131 net/cert/internal/trust_store.h:131: virtual bool IsBlacklisted(const scoped_refptr<ParsedCertificate>& cert) const On 2017/04/20 03:19:07, ...
3 years, 8 months ago (2017-04-20 18:20:11 UTC) #10
eroman
PTAL, I updated per our discussion.
3 years, 7 months ago (2017-04-27 18:46:33 UTC) #16
mattm
https://codereview.chromium.org/2832703002/diff/60001/components/cast_certificate/cast_cert_validator_unittest.cc File components/cast_certificate/cast_cert_validator_unittest.cc (right): https://codereview.chromium.org/2832703002/diff/60001/components/cast_certificate/cast_cert_validator_unittest.cc#newcode101 components/cast_certificate/cast_cert_validator_unittest.cc:101: // buil-in Cast roots). built-in https://codereview.chromium.org/2832703002/diff/60001/net/cert/internal/path_builder.cc File net/cert/internal/path_builder.cc (right): ...
3 years, 7 months ago (2017-04-28 20:26:47 UTC) #20
eroman
https://codereview.chromium.org/2832703002/diff/60001/components/cast_certificate/cast_cert_validator_unittest.cc File components/cast_certificate/cast_cert_validator_unittest.cc (right): https://codereview.chromium.org/2832703002/diff/60001/components/cast_certificate/cast_cert_validator_unittest.cc#newcode101 components/cast_certificate/cast_cert_validator_unittest.cc:101: // buil-in Cast roots). On 2017/04/28 20:26:47, mattm wrote: ...
3 years, 7 months ago (2017-04-28 21:48:04 UTC) #23
mattm
lgtm
3 years, 7 months ago (2017-04-28 22:38:27 UTC) #24
eroman
TBR dougsteed@ for components/cast_certificate OWNER There should not be any functional changes; this is just ...
3 years, 7 months ago (2017-04-28 22:40:53 UTC) #26
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/2832703002/80001
3 years, 7 months ago (2017-04-28 23:03:35 UTC) #29
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/2832703002/80001
3 years, 7 months ago (2017-04-28 23:08:56 UTC) #33
ryanchung
https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc File components/cast_certificate/cast_cert_validator_test_helpers.cc (right): https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc#newcode96 components/cast_certificate/cast_cert_validator_test_helpers.cc:96: trust_store->AddTrustAnchorWithConstraints(cert); nit: std:move(cert) ?
3 years, 7 months ago (2017-04-28 23:11:30 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/2a938c3d286c77d7b769a9b7dc31bab8a309d19b
3 years, 7 months ago (2017-04-28 23:17:16 UTC) #38
eroman
https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc File components/cast_certificate/cast_cert_validator_test_helpers.cc (right): https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc#newcode96 components/cast_certificate/cast_cert_validator_test_helpers.cc:96: trust_store->AddTrustAnchorWithConstraints(cert); On 2017/04/28 23:11:30, ryanchung wrote: > nit: std:move(cert) ...
3 years, 7 months ago (2017-04-28 23:51:06 UTC) #39
ryanchung
https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc File components/cast_certificate/cast_cert_validator_test_helpers.cc (right): https://codereview.chromium.org/2832703002/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc#newcode96 components/cast_certificate/cast_cert_validator_test_helpers.cc:96: trust_store->AddTrustAnchorWithConstraints(cert); On 2017/04/28 23:51:06, eroman wrote: > On 2017/04/28 ...
3 years, 7 months ago (2017-04-28 23:57:37 UTC) #40
dougsteed
3 years, 7 months ago (2017-04-29 05:22:32 UTC) #41
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698