Add Expect-CT header parsing

Desktop / Chromium - estark [chromium.org] - 21 April 2017 14:01 EDT

This CL implements parsing of the Expect-CT HTTP header (draft spec at https://tools.ietf.org/html/draft-ietf-httpbis-expect-ct-00).

BUG=679012

Review-Url: https://codereview.chromium.org/2753703002 Cr-Commit-Position: refs/heads/master@{#466386}

a57e816 Add Expect-CT header parsing
net/BUILD.gn | 16 ++
.../http_security_header_000.txt | 1 +
.../http_security_header_001.txt | 1 +
.../http_security_header_002.txt | 1 +
.../http_security_header_003.txt | 1 +
.../http_security_header_004.txt | 1 +
.../http_security_header_005.txt | 1 +
.../http_security_header_006.txt | 1 +
.../http_security_header_007.txt | 1 +
.../http_security_header_008.txt | 1 +
.../http_security_header_009.txt | 1 +
.../http_security_header_010.txt | 1 +
.../http_security_header_011.txt | 1 +
.../http_security_header_012.txt | 1 +
.../http_security_header_013.txt | 1 +
.../http_security_header_014.txt | 1 +
.../http_security_header_015.txt | 1 +
.../http_security_header_016.txt | 1 +
.../http_security_header_017.txt | 1 +
.../http_security_header_018.txt | 1 +
.../http_security_header_019.txt | 1 +
.../http_security_header_020.txt | 1 +
.../http_security_header_021.txt | 1 +
.../http_security_header_022.txt | 1 +
.../http_security_header_023.txt | 1 +
.../http_security_header_024.txt | 1 +
.../http_security_header_025.txt | 1 +
.../http_security_header_026.txt | 1 +
.../http_security_header_027.txt | 1 +
.../http_security_header_028.txt | 1 +
.../http_security_header_029.txt | 1 +
.../http_security_header_030.txt | 1 +
.../http_security_header_031.txt | 1 +
.../http_security_header_032.txt | 1 +
.../http_security_header_033.txt | 1 +
.../http_security_header_034.txt | 1 +
.../http_security_header_035.txt | 1 +
.../http_security_header_036.txt | 1 +
.../http_security_header_037.txt | 1 +
.../http_security_header_038.txt | 1 +
.../http_security_header_039.txt | 1 +
.../http_security_header_040.txt | 1 +
.../http_security_header_041.txt | 1 +
.../http_security_header_042.txt | 1 +
.../http_security_header_043.txt | 1 +
.../http_security_header_044.txt | 1 +
.../http_security_header_045.txt | 1 +
.../http_security_header_046.txt | 1 +
.../http_security_header_047.txt | 1 +
.../http_security_header_048.txt | 1 +
.../http_security_header_049.txt | 1 +
.../http_security_header_050.txt | 1 +
.../http_security_header_051.txt | 1 +
.../http_security_header_052.txt | 1 +
.../http_security_header_053.txt | 1 +
.../http_security_header_054.txt | 1 +
.../http_security_header_055.txt | 1 +
.../http_security_header_056.txt | 1 +
.../http_security_header_057.txt | 1 +
.../http_security_header_058.txt | 1 +
.../http_security_header_059.txt | 1 +
.../http_security_header_060.txt | 1 +
.../http_security_header_061.txt | 1 +
.../http_security_header_062.txt | 1 +
.../http_security_header_063.txt | 1 +
.../http_security_header_064.txt | 1 +
.../http_security_header_065.txt | 1 +
.../http_security_header_066.txt | 1 +
.../http_security_header_067.txt | 1 +
.../http_security_header_068.txt | 1 +
.../http_security_header_069.txt | 1 +
.../http_security_header_070.txt | 1 +
.../http_security_header_071.txt | 1 +
.../http_security_header_072.txt | 1 +
.../http_security_header_073.txt | 1 +
.../http_security_header_074.txt | 1 +
.../http_security_header_075.txt | 1 +
.../http_security_header_076.txt | 1 +
.../http_security_header_077.txt | 1 +
.../http_security_header_078.txt | 1 +
.../http_security_header_079.txt | 1 +
.../http_security_header_080.txt | 1 +
.../http_security_header_081.txt | 1 +
.../http_security_header_082.txt | 1 +
.../http_security_header_083.txt | 1 +
.../http_security_header_084.txt | 1 +
.../http_security_header_085.txt | 1 +
.../http_security_header_086.txt | 1 +
.../http_security_header_087.txt | 1 +
.../http_security_header_088.txt | 1 +
.../http_security_header_089.txt | 1 +
.../http_security_header_090.txt | 1 +
.../http_security_header_091.txt | 1 +
.../http_security_header_092.txt | 1 +
.../http_security_header_093.txt | 1 +
.../http_security_header_094.txt | 1 +
.../http_security_header_095.txt | 1 +
.../http_security_header_096.txt | 1 +
.../http_security_header_097.txt | 1 +
.../http_security_header_098.txt | 1 +
.../http_security_header_099.txt | 1 +
.../http_security_header_100.txt | 1 +
.../http_security_header_101.txt | 1 +
.../http_security_header_102.txt | 1 +
.../http_security_header_103.txt | 1 +
.../http_security_header_104.txt | 1 +
.../http_security_header_105.txt | 1 +
.../http_security_header_106.txt | 1 +
.../http_security_header_107.txt | 1 +
.../http_security_header_108.txt | 1 +
.../http_security_header_109.txt | 1 +
.../http_security_header_110.txt | 1 +
.../http_security_header_111.txt | 1 +
.../http_security_header_112.txt | 1 +
.../http_security_header_113.txt | 1 +
.../http_security_header_114.txt | 1 +
.../http_security_header_115.txt | 1 +
.../http_security_header_116.txt | 1 +
.../http_security_header_117.txt | 1 +
.../http_security_header_118.txt | 1 +
.../http_security_header_119.txt | 1 +
.../http_security_header_120.txt | 1 +
.../http_security_header_121.txt | 1 +
.../http_security_header_122.txt | 1 +
.../http_security_header_123.txt | 1 +
.../http_security_header_124.txt | 1 +
.../http_security_header_125.txt | 1 +
.../http_security_header_126.txt | 1 +
.../http_security_header_127.txt | 1 +
.../http_security_header_128.txt | 1 +
.../http_security_header_129.txt | 1 +
.../http_security_header_130.txt | 1 +
.../http_security_header_131.txt | 1 +
.../http_security_header_132.txt | 1 +
.../http_security_header_133.txt | 1 +
.../http_security_header_134.txt | 1 +
.../http_security_header_135.txt | 1 +
.../http_security_header_136.txt | 1 +
.../net_http_security_headers_fuzzer.dict | 4 +-
net/http/http_security_headers.cc | 74 ++++++
net/http/http_security_headers.h | 20 ++
net/http/http_security_headers_expect_ct_fuzzer.cc | 21 ++
net/http/http_security_headers_unittest.cc | 287 +++++++++++++++++++++
143 files changed, 558 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share