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

Issue 2480813002: Don't maintain a second level of timeouts. (Closed)

Created:
4 years, 1 month ago by davidben
Modified:
4 years, 1 month ago
Reviewers:
svaldez
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't maintain a second level of timeouts. This second level of timeouts is not maintained correctly in the case of TLS 1.2 ticket renewals. BoringSSL does not extend ticket lifetimes on ticket renewals because the master secret is unchanged, but BoringSSL's default is two hours, while SSLClientSessionCache uses one hour. This meant that TLS 1.2 ticket renewals currently extend the one hour lifetime up to a two hour non-renewable lifetime. This makes no sense. Instead, have SSLClientSessionCache query SSL_SESSION timeout fields. Then configure the SSL_CTX to match the old timeout to preserve the existing behavior. (Though I suspect one vs two hours isn't a big difference and we could just leave it at BoringSSL defaults.) Do this both to fix our TLS 1.2 ticket renewal policy and prepare for TLS 1.3 which will involve a more complex timeout policy. (Resumptions do an ECDH and renewals incorporate that key material, so longer and renewable lifetimes makes sense, but we will still need a non-renewable timeout for when we require a fresh signature.) BUG=630147 Committed: https://crrev.com/99ce6308c09c342dbf6cdabda0bdbc1452ee036d Cr-Commit-Position: refs/heads/master@{#430961}

Patch Set 1 #

Patch Set 2 : SimpleTestClock is broken. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -50 lines) Patch
M net/socket/ssl_client_socket_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/ssl/ssl_client_session_cache.h View 4 chunks +3 lines, -16 lines 0 comments Download
M net/ssl/ssl_client_session_cache.cc View 3 chunks +11 lines, -20 lines 0 comments Download
M net/ssl/ssl_client_session_cache_unittest.cc View 1 6 chunks +45 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
davidben
4 years, 1 month ago (2016-11-04 18:41:20 UTC) #4
svaldez
lgtm
4 years, 1 month ago (2016-11-07 17:30:15 UTC) #7
davidben
asfasdfasdfasd base::Time is terrible. Turns out base::Time::ToTimeT is discontinuous at zero, which SimpleTestClock initializes itself ...
4 years, 1 month ago (2016-11-09 01:48:28 UTC) #10
svaldez
lgtm
4 years, 1 month ago (2016-11-09 17:24:29 UTC) #14
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/2480813002/20001
4 years, 1 month ago (2016-11-09 17:25:03 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 17:30:57 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 17:32:39 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/99ce6308c09c342dbf6cdabda0bdbc1452ee036d
Cr-Commit-Position: refs/heads/master@{#430961}

Powered by Google App Engine
This is Rietveld 408576698