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

Issue 201033: ForceTLS: hash hostnames, handle subdomains, canonicalise. (Closed)

Created:
11 years, 3 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
abarth-chromium
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

ForceTLS: hash hostnames, handle subdomains, canonicalise. It turns out that JSON[Reader|Writer] cannot handle periods in key names(!). Because of this, an also to avoid leaking a sort of ForceTLS browser history in the state file, we hash the domain names. Also, this patch tries to implement the RFCs with respect to canonicalising the names. Since IDN processing has already occured by the time the name reaches us, there's only so much that we can do however.

Patch Set 1 #

Total comments: 6

Patch Set 2 : ... #

Patch Set 3 : ... #

Total comments: 10

Patch Set 4 : ... #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -23 lines) Patch
A net/base/dns_util.h View 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A net/base/dns_util.cc View 2 3 1 chunk +71 lines, -0 lines 0 comments Download
A net/base/dns_util_unittest.cc View 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M net/base/strict_transport_security_state.h View 2 3 2 chunks +5 lines, -1 line 0 comments Download
M net/base/strict_transport_security_state.cc View 2 3 7 chunks +103 lines, -20 lines 0 comments Download
M net/base/strict_transport_security_state_unittest.cc View 2 3 2 chunks +79 lines, -2 lines 1 comment Download
M net/net.gyp View 2 chunks +2 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
agl
Not sure that this is quite ready yet, but I though that I would let ...
11 years, 3 months ago (2009-09-04 23:39:21 UTC) #1
abarth-chromium
I checked in the name change, so you'll probably end up with a bunch of ...
11 years, 3 months ago (2009-09-05 14:57:26 UTC) #2
agl
http://codereview.chromium.org/201033/diff/1/2 File net/base/force_tls_state.cc (right): http://codereview.chromium.org/201033/diff/1/2#newcode194 Line 194: static std::wstring HashedDomainToExternalString(const std::string& hashed) { On 2009/09/05 ...
11 years, 3 months ago (2009-09-08 18:08:37 UTC) #3
abarth-chromium
This looks good to me. The only real issue is the style / licensing of ...
11 years, 3 months ago (2009-09-08 18:24:40 UTC) #4
agl
http://codereview.chromium.org/201033/diff/4001/4002 File net/base/dns_util.cc (right): http://codereview.chromium.org/201033/diff/4001/4002#newcode8 Line 8: On 2009/09/08 18:24:43, abarth wrote: > Do we ...
11 years, 3 months ago (2009-09-09 00:36:35 UTC) #5
abarth-chromium
11 years, 3 months ago (2009-09-09 00:54:22 UTC) #6
LGTM!  Two nits below.

http://codereview.chromium.org/201033/diff/3017/5007
File net/base/strict_transport_security_state_unittest.cc (right):

http://codereview.chromium.org/201033/diff/3017/5007#newcode8
Line 8: namespace net {
I think we don't need to put this in the net namespace anymore now that we're
not using a friend test.

http://codereview.chromium.org/201033/diff/3017/5008
File net/net.gyp (right):

http://codereview.chromium.org/201033/diff/3017/5008#newcode55
Line 55: 'base/dns_util.cc',
What about dns_util.h?

Powered by Google App Engine
This is Rietveld 408576698