Chromium Code Reviews
DescriptionCleanup HPKP error handling and weak DH key handling
HPKP and WeakDH went through special-case logic in
URLRequestHttpJob to map them 'as if' they were cert
verification errors. However, the WeakDH code was
partially reverted, leaving half-implemented code
around, and the HPKP code added an unnecessary
conditional.
This cleans up the WeakDH exception by removing it
as a cert verification error (because it wasn't, and
the CertStatus flag was reverted) and leaving it as
a standard net-error (which is intrinsically
non-bypassable), and removes the associated error
page that wasn't.
This cleans up the HPKP exception by removing the
dead methods on TransportSecurityState and removing
the conditional from the URLRequestHttpJob, because
it's duplicating the logic that the TSS already
handles.
This moves the HPKP fixing up of the cert verification
result from the HttpJob and into the SSL/QUIC socket
code bits, which is more correct anyways, as they
handle certificate verification, and HPKP belongs
close to cert verification anyways. This portion of
code was an artifact of when HPKP was evaluated on
the URLRequestHttpJob, which it hasn't been for over
four years.
BUG=none
R=davidben@chromium.org
Committed: https://crrev.com/9545d3478138019ef62b9c9fd768766725577452
Cr-Commit-Position: refs/heads/master@{#400880}
Patch Set 1 #
Total comments: 9
Patch Set 2 : Rebased #Patch Set 3 : Davidben feedback #
Total comments: 3
Patch Set 4 : Fix bad test #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 22 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||