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

Issue 2100303002: Add OCSPVerifyResult for tracking stapled OCSP responses cross-platform. (Closed)

Created:
4 years, 5 months ago by dadrian
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ocsp-date-check
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract OCSPCertStatus::Status to standalone OCSPRevocationStatus, and add OCSPVerifyResult for tracking stapled OCSP responses cross-platform. OCSPVerifyResult is populated by CertVerifyProc, but is currently unused. In the future, it will be consumed by Expect-Staple reports. This CL also updates mini-CA and the spawned test server to be able to send a wider range of OCSP responses. Since OCSP responses are short lived, test the new functionality in url_request_unittest.cc and dynamically generate OCSP responses. BUG=598021 Committed: https://crrev.com/612337a1d7cadc52d0217b9f399eb1fab445d3e2 Cr-Commit-Position: refs/heads/master@{#406699}

Patch Set 1 #

Patch Set 2 : Add tests for REVOKED status #

Total comments: 37

Patch Set 3 : Comments from reviewers, producedAt #

Patch Set 4 : Rebase #

Patch Set 5 : Clean up tests. #

Patch Set 6 : Add tests with multiple stapled responses #

Patch Set 7 : Rebase. #

Patch Set 8 : Nits. #

Patch Set 9 : Add tests for remaining values of ResponseStatus #

Patch Set 10 : Extract OCSPCertStatus::Status from internal #

Total comments: 4

Patch Set 11 : Rebase. #

Patch Set 12 : Fix tests on Windows. #

Patch Set 13 : Fix browser_tests on ChromeOS. #

Patch Set 14 : Always pass ocsp_response to verifier. #

Total comments: 8

Patch Set 15 : Comments from estark #

Total comments: 46

Patch Set 16 : Optional was optional. #

Total comments: 14

Patch Set 17 : Remaining nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+932 lines, -111 lines) Patch
M chrome/browser/chromeos/login/test/https_forwarder.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/cert/cert_verify_proc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +130 lines, -0 lines 0 comments Download
M net/cert/cert_verify_result.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M net/cert/cert_verify_result.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/internal/parse_ocsp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +2 lines, -6 lines 0 comments Download
M net/cert/internal/parse_ocsp.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -7 lines 0 comments Download
M net/cert/internal/parse_ocsp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
A + net/cert/ocsp_revocation_status.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -6 lines 0 comments Download
A net/cert/ocsp_verify_result.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +66 lines, -0 lines 0 comments Download
A net/cert/ocsp_verify_result.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +13 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -7 lines 0 comments Download
M net/ssl/ssl_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M net/ssl/ssl_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M net/test/spawned_test_server/base_test_server.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +52 lines, -2 lines 0 comments Download
M net/test/spawned_test_server/base_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +94 lines, -11 lines 0 comments Download
M net/tools/testserver/minica.py View 1 2 3 4 5 6 7 8 6 chunks +133 lines, -36 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +76 lines, -15 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +325 lines, -17 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 46 (25 generated)
dadrian
This is the next step in splitting up https://codereview.chromium.org/2040513003/. It adds the OCSPVerifyResult, and corresponding ...
4 years, 5 months ago (2016-06-27 22:43:03 UTC) #2
svaldez
https://codereview.chromium.org/2100303002/diff/20001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2100303002/diff/20001/net/cert/cert_verify_proc.cc#newcode185 net/cert/cert_verify_proc.cc:185: bool CompareCertIDToCertificate(const OCSPCertID& cert_id, Might need a different name, ...
4 years, 5 months ago (2016-06-29 14:41:23 UTC) #3
dadrian
Extra bump for rsleevi@'s thoughts on tests https://codereview.chromium.org/2100303002/diff/20001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2100303002/diff/20001/net/cert/cert_verify_proc.cc#newcode185 net/cert/cert_verify_proc.cc:185: bool CompareCertIDToCertificate(const ...
4 years, 5 months ago (2016-06-30 21:52:43 UTC) #4
Ryan Sleevi
Hopefully I addressed the specific questions, but LMK if I missed something https://codereview.chromium.org/2100303002/diff/20001/net/tools/testserver/minica.py File net/tools/testserver/minica.py ...
4 years, 5 months ago (2016-06-30 22:14:51 UTC) #5
dadrian
This should now be ready for real review. https://codereview.chromium.org/2100303002/diff/20001/net/tools/testserver/minica.py File net/tools/testserver/minica.py (right): https://codereview.chromium.org/2100303002/diff/20001/net/tools/testserver/minica.py#newcode295 net/tools/testserver/minica.py:295: producedAt ...
4 years, 5 months ago (2016-07-08 22:17:30 UTC) #6
dadrian
On 2016/07/08 22:17:30, dadrian wrote: > This should now be ready for real review. > ...
4 years, 5 months ago (2016-07-14 01:39:03 UTC) #20
estark
(Oops, my comments span two different patchsets because apparently I had some from days ago ...
4 years, 5 months ago (2016-07-14 21:14:58 UTC) #21
dadrian
https://codereview.chromium.org/2100303002/diff/180001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2100303002/diff/180001/net/cert/cert_verify_proc.cc#newcode347 net/cert/cert_verify_proc.cc:347: // Check OCSP information On 2016/07/14 21:14:58, estark wrote: ...
4 years, 5 months ago (2016-07-15 01:00:50 UTC) #23
dadrian
On 2016/07/14 21:14:58, estark wrote: > (Oops, my comments span two different patchsets because apparently ...
4 years, 5 months ago (2016-07-15 01:03:37 UTC) #25
svaldez
Mostly looks good, can you call out the OCSPRevocationStatus being moved out of the parse_ocsp ...
4 years, 5 months ago (2016-07-16 08:51:53 UTC) #28
dadrian
On 2016/07/16 08:51:53, svaldez wrote: > Mostly looks good, can you call out the OCSPRevocationStatus ...
4 years, 5 months ago (2016-07-18 17:30:19 UTC) #30
Ryan Sleevi
I largely skipped the test server/unittest code to focus on the implementation for expediency sake. ...
4 years, 5 months ago (2016-07-18 20:08:08 UTC) #31
dadrian
https://codereview.chromium.org/2100303002/diff/280001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2100303002/diff/280001/net/cert/cert_verify_proc.cc#newcode188 net/cert/cert_verify_proc.cc:188: bool CheckCertIDMatchesCertificate(const OCSPCertID& cert_id, On 2016/07/18 20:08:08, Ryan Sleevi ...
4 years, 5 months ago (2016-07-18 22:23:33 UTC) #32
Ryan Sleevi
LGTM *super* good work on the documentation. Made it so much easier to follow and ...
4 years, 5 months ago (2016-07-18 22:56:37 UTC) #33
dadrian
https://codereview.chromium.org/2100303002/diff/300001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/2100303002/diff/300001/net/cert/cert_verify_proc.cc#newcode285 net/cert/cert_verify_proc.cc:285: // The SingleResponse matches the certificate, but may be ...
4 years, 5 months ago (2016-07-18 23:20:26 UTC) #34
dadrian
dzhioev@chromium.org: Looking for review on the compatibility change to the ChromeOS test file. Thanks!
4 years, 5 months ago (2016-07-18 23:23:58 UTC) #36
dadrian
On 2016/07/18 23:23:58, dadrian wrote: > mailto:dzhioev@chromium.org: Looking for review on the compatibility change to ...
4 years, 5 months ago (2016-07-20 20:14:07 UTC) #38
dzhioev (left Google)
c/b/chromeos/login LGTM
4 years, 5 months ago (2016-07-20 21:01:40 UTC) #39
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/2100303002/320001
4 years, 5 months ago (2016-07-20 21:08:12 UTC) #42
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 5 months ago (2016-07-20 22:37:14 UTC) #44
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 22:39:11 UTC) #46
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/612337a1d7cadc52d0217b9f399eb1fab445d3e2
Cr-Commit-Position: refs/heads/master@{#406699}

Powered by Google App Engine
This is Rietveld 408576698