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

Unified Diff: net/http/http_security_headers.h

Issue 1831963002: Fix number parsing for max-age for HSTS/HPKP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@parse_refactor
Patch Set: rebase Created 4 years, 8 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/http/http_security_headers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_security_headers.h
diff --git a/net/http/http_security_headers.h b/net/http/http_security_headers.h
index a2ddad2d46e7cb139d28dfa4477b25080f0aea81..34f37b9f9213bc51ba69d5fd707878d694b06e5d 100644
--- a/net/http/http_security_headers.h
+++ b/net/http/http_security_headers.h
@@ -18,11 +18,11 @@ class GURL;
namespace net {
-const int64_t kMaxHSTSAgeSecs = 86400 * 365; // 1 year
+const uint32_t kMaxHSTSAgeSecs = 86400 * 365; // 1 year
// RFC7469 suggests that 60 days is a reasonable maximum max-age value
// http://tools.ietf.org/html/rfc7469#section-4.1
-const int64_t kMaxHPKPAgeSecs = 86400 * 60; // 60 days
+const uint32_t kMaxHPKPAgeSecs = 86400 * 60; // 60 days
// Parses |value| as a Strict-Transport-Security header value. If successful,
// returns true and sets |*max_age| and |*include_subdomains|.
« no previous file with comments | « no previous file | net/http/http_security_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698