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

Unified Diff: net/base/crl_set.cc

Issue 7823004: Convert SHA256_LENGTH from a constant-in-anonymous-enum to a static const. This defines the cons... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
Index: net/base/crl_set.cc
===================================================================
--- net/base/crl_set.cc (revision 98481)
+++ net/base/crl_set.cc (working copy)
@@ -152,10 +152,10 @@
static bool ReadCRL(base::StringPiece* data, std::string* out_parent_spki_hash,
std::vector<std::string>* out_serials) {
- if (data->size() < crypto::SHA256_LENGTH)
+ if (data->size() < crypto::kSHA256Length)
return false;
- *out_parent_spki_hash = std::string(data->data(), crypto::SHA256_LENGTH);
- data->remove_prefix(crypto::SHA256_LENGTH);
+ *out_parent_spki_hash = std::string(data->data(), crypto::kSHA256Length);
+ data->remove_prefix(crypto::kSHA256Length);
if (data->size() < sizeof(uint32))
return false;
« crypto/sha2.h ('K') | « crypto/sha2_unittest.cc ('k') | net/base/dnssec_chain_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698