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

Issue 10556022: Consider the verification time as well as the expiration time when caching certificate verification… (Closed)

Created:
8 years, 6 months ago by Ryan Sleevi
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, szym, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

Consider the verification time as well as the expiration time when caching certificate verifications. When caching certificate verification results, rather than simply considering whether the current tick count (monotonically increasing) is greater than or equal to the expiration tick count, consider the actual (system) time of the verification when it was cached in addition to the configurated expiration time. This will cause cached certificate verification results to be considered expired, and thus re-validated, if the user adjusts the system clock. Since certificate verification results are dependent upon the system clock (eg: they may not be valid yet or may be expired, based on what the system clock says), this is the desired behavior. BUG=132124 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143020

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comment fixes #

Total comments: 15

Patch Set 3 : Rebase #

Patch Set 4 : Review feedback #

Patch Set 5 : Now with less const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -45 lines) Patch
M net/base/expiring_cache.h View 1 2 3 4 7 chunks +47 lines, -15 lines 0 comments Download
M net/base/expiring_cache_unittest.cc View 1 2 3 14 chunks +90 lines, -24 lines 0 comments Download
M net/base/host_cache.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M net/base/host_cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/multi_threaded_cert_verifier.h View 1 2 3 2 chunks +25 lines, -1 line 0 comments Download
M net/base/multi_threaded_cert_verifier.cc View 1 2 3 3 chunks +54 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Ryan Sleevi
Chris, You helped review the early version, mind taking a stab at the enhanced? The ...
8 years, 6 months ago (2012-06-15 21:35:29 UTC) #1
szym
Drive-by: Other than comments, expiring_cache.* and host_cache.* changes look good. http://codereview.chromium.org/10556022/diff/1/net/base/expiring_cache.h File net/base/expiring_cache.h (right): http://codereview.chromium.org/10556022/diff/1/net/base/expiring_cache.h#newcode24 ...
8 years, 6 months ago (2012-06-15 22:19:30 UTC) #2
Ryan Sleevi
ping?
8 years, 6 months ago (2012-06-18 16:05:28 UTC) #3
szym
http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc File net/base/multi_threaded_cert_verifier.cc (right): http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc#newcode474 net/base/multi_threaded_cert_verifier.cc:474: ValidityRange(now, now + base::TimeDelta::FromSeconds(kTTLSecs))); If the result is successful, ...
8 years, 6 months ago (2012-06-18 16:11:37 UTC) #4
Ryan Sleevi
http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc File net/base/multi_threaded_cert_verifier.cc (right): http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc#newcode474 net/base/multi_threaded_cert_verifier.cc:474: ValidityRange(now, now + base::TimeDelta::FromSeconds(kTTLSecs))); On 2012/06/18 16:11:37, szym wrote: ...
8 years, 6 months ago (2012-06-18 18:00:46 UTC) #5
cbentzel
http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h File net/base/expiring_cache.h (right): http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h#newcode25 net/base/expiring_cache.h:25: // ExpirationCompare is a function class that takes two ...
8 years, 6 months ago (2012-06-18 19:08:28 UTC) #6
wtc
Drive-by review comments on patch set 2: http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h File net/base/expiring_cache.h (right): http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h#newcode30 net/base/expiring_cache.h:30: typename ExpirationType ...
8 years, 6 months ago (2012-06-18 22:10:38 UTC) #7
Ryan Sleevi
Nits & Comments adjusted, save for szym's point. http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h File net/base/expiring_cache.h (right): http://codereview.chromium.org/10556022/diff/3002/net/base/expiring_cache.h#newcode30 net/base/expiring_cache.h:30: typename ...
8 years, 6 months ago (2012-06-19 00:59:28 UTC) #8
cbentzel
LGTM, pending resolution of szym's comment. I did wonder if there should be a default ...
8 years, 6 months ago (2012-06-19 15:12:54 UTC) #9
Ryan Sleevi
http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc File net/base/multi_threaded_cert_verifier.cc (right): http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc#newcode474 net/base/multi_threaded_cert_verifier.cc:474: ValidityRange(now, now + base::TimeDelta::FromSeconds(kTTLSecs))); On 2012/06/18 18:00:46, Ryan Sleevi ...
8 years, 6 months ago (2012-06-19 17:57:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/10556022/17001
8 years, 6 months ago (2012-06-19 17:58:07 UTC) #11
szym
lgtm http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc File net/base/multi_threaded_cert_verifier.cc (right): http://codereview.chromium.org/10556022/diff/3002/net/base/multi_threaded_cert_verifier.cc#newcode474 net/base/multi_threaded_cert_verifier.cc:474: ValidityRange(now, now + base::TimeDelta::FromSeconds(kTTLSecs))); On 2012/06/19 17:57:34, Ryan ...
8 years, 6 months ago (2012-06-19 18:01:13 UTC) #12
commit-bot: I haz the power
Try job failure for 10556022-17001 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 6 months ago (2012-06-19 18:10:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/10556022/24003
8 years, 6 months ago (2012-06-19 18:19:45 UTC) #14
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 19:37:32 UTC) #15
Change committed as 143020

Powered by Google App Engine
This is Rietveld 408576698