| Index: net/http/transport_security_state.cc
|
| diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
|
| index e5202c054e3265cb8f1d0e68b24d465fa4b6c773..d4d6f495199460c4af336f05ba4f5c5b3649a278 100644
|
| --- a/net/http/transport_security_state.cc
|
| +++ b/net/http/transport_security_state.cc
|
| @@ -15,7 +15,6 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/metrics/sparse_histogram.h"
|
| -#include "base/sha1.h"
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| @@ -152,12 +151,13 @@ bool GetHPKPReport(const HostPortPair& host_port_pair,
|
| std::string known_pin;
|
|
|
| switch (hash_value.tag) {
|
| - case HASH_VALUE_SHA1:
|
| - known_pin += "pin-sha1=";
|
| - break;
|
| case HASH_VALUE_SHA256:
|
| known_pin += "pin-sha256=";
|
| break;
|
| + default:
|
| + // Don't bother reporting about hash types we don't support. SHA-256 is
|
| + // the only standardized hash function for HPKP anyway.
|
| + continue;
|
| }
|
|
|
| std::string base64_value;
|
|
|