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

Unified Diff: net/base/hash_value.h

Issue 2951343002: Remove residual support for SHA-1 public key pins. (Closed)
Patch Set: Remove the rest of HASH_VALUE_SHA1; respond to comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/hash_value.cc » ('j') | net/data/ssl/name_constrained/README.md » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/hash_value.h
diff --git a/net/base/hash_value.h b/net/base/hash_value.h
index 873378246671e07002e4b4a7223d1a5de660627e..4a1aed30c32d42062cee96e7ff5dc6fb9a0467c4 100644
--- a/net/base/hash_value.h
+++ b/net/base/hash_value.h
@@ -43,16 +43,14 @@ inline bool operator!=(const SHA256HashValue& lhs, const SHA256HashValue& rhs) {
}
enum HashValueTag {
- HASH_VALUE_SHA1,
HASH_VALUE_SHA256,
};
class NET_EXPORT HashValue {
public:
- explicit HashValue(const SHA1HashValue& hash);
explicit HashValue(const SHA256HashValue& hash);
explicit HashValue(HashValueTag tag) : tag(tag) {}
- HashValue() : tag(HASH_VALUE_SHA1) {}
+ HashValue() : tag(HASH_VALUE_SHA256) {}
// Serializes/Deserializes hashes in the form of
// <hash-name>"/"<base64-hash-value>
« no previous file with comments | « no previous file | net/base/hash_value.cc » ('j') | net/data/ssl/name_constrained/README.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698