Chromium Code Reviews
DescriptionChange SSLStatus to carry a vector of SCT statuses instead of counters
SSLStatus consumers only care about the number of SCTs with different
statuses, so previously SSLStatus exposed counters: |num_invalid_scts|,
|num_unknown_scts|, and |num_valid_scts|.
However, in seeking to add a new type of SCT validation status, it
became clear that this design is a bit messy: the layers between the
net stack and the UI code that consumes the status have to know about
all the possible validation statuses. Moreover, we take a list of SCTs
and tally them up by status, only to convert those tallies back into a
list of statuses. So instead, I've changed SSLStatus to hold a vector
of SCTVerifyStatus enums, instead of counters for each possible status.
Also note that connections typically have no more than 3 or 4 SCTs, so
keeping a vector of SCTVerifyStatus instead of counters will not use a
whole lot more memory.
This change is based on top of https://codereview.chromium.org/2208803002/.
BUG=634006
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/41b454d9282c8dca0800b1d07dee9f38d99b3403
Cr-Commit-Position: refs/heads/master@{#409721}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 15 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||