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

Issue 2400183002: Cleanup: More accurate output parameter type for CTVerifier (Closed)

Created:
4 years, 2 months ago by Eran Messeri
Modified:
4 years, 2 months ago
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, cbentzel+watch_chromium.org, Eran Messeri, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: More accurate output parameter type for CTVerifier The CTVerifier interface took a CTVerifyResult* as an output parameter. This change replaces the output parameter with SignedCertificateTimestampAndStatusList*, which is the only output all implementations of the CTVerifier interface could provide. Other fields in the CTVerifyResult struct are filled in by other entities and CTVerifier implementations have no ability to fill them in (or any need to access them at all). So it is cleaner, and more conservative, to only provide the SCT List to be filled to the CTVerifier. BUG=653825 Committed: https://crrev.com/dcec963661499b7e6cb04cb2ecbec343b8ffc2a4 Cr-Commit-Position: refs/heads/master@{#424146}

Patch Set 1 #

Total comments: 4

Patch Set 2 : IWYU, review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -91 lines) Patch
M net/cert/ct_signed_certificate_timestamp_log_param.h View 2 chunks +3 lines, -5 lines 0 comments Download
M net/cert/ct_signed_certificate_timestamp_log_param.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M net/cert/ct_verifier.h View 2 chunks +2 lines, -6 lines 0 comments Download
M net/cert/multi_log_ct_verifier.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/cert/multi_log_ct_verifier.cc View 9 chunks +31 lines, -27 lines 0 comments Download
M net/cert/multi_log_ct_verifier_unittest.cc View 4 chunks +28 lines, -26 lines 0 comments Download
M net/quic/chromium/crypto/proof_verifier_chromium.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/quic/chromium/crypto/proof_verifier_chromium_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/socket/ssl_server_socket_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/test/ct_test_util.h View 2 chunks +5 lines, -4 lines 0 comments Download
M net/test/ct_test_util.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/ssl_hmac_channel_authenticator.cc View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
Eran Messeri
Eric, please review this small API clean-up change that does not introduce any functional changes.
4 years, 2 months ago (2016-10-07 13:21:39 UTC) #5
Ryan Sleevi
LGTM % IWYU fixes https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc File net/quic/chromium/crypto/proof_verifier_chromium.cc (right): https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc#newcode235 net/quic/chromium/crypto/proof_verifier_chromium.cc:235: &(verify_details_->ct_verify_result.scts), net_log_); Are the parens ...
4 years, 2 months ago (2016-10-07 14:05:29 UTC) #9
Sergey Ulanov
remoting lgtm
4 years, 2 months ago (2016-10-07 15:39:22 UTC) #11
Eran Messeri
Thanks for the quick review all, done. https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc File net/quic/chromium/crypto/proof_verifier_chromium.cc (right): https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc#newcode235 net/quic/chromium/crypto/proof_verifier_chromium.cc:235: &(verify_details_->ct_verify_result.scts), net_log_); ...
4 years, 2 months ago (2016-10-10 13:14:08 UTC) #14
Eran Messeri
Thanks for the quick review all, done. https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc File net/quic/chromium/crypto/proof_verifier_chromium.cc (right): https://codereview.chromium.org/2400183002/diff/1/net/quic/chromium/crypto/proof_verifier_chromium.cc#newcode235 net/quic/chromium/crypto/proof_verifier_chromium.cc:235: &(verify_details_->ct_verify_result.scts), net_log_); ...
4 years, 2 months ago (2016-10-10 13:14:09 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/2400183002/20001
4 years, 2 months ago (2016-10-10 14:11:58 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-10 14:16:29 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 14:18:40 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dcec963661499b7e6cb04cb2ecbec343b8ffc2a4
Cr-Commit-Position: refs/heads/master@{#424146}

Powered by Google App Engine
This is Rietveld 408576698