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

Unified Diff: net/cert/cert_policy_enforcer.cc

Issue 1032093002: Certificate Transparency: Correct month calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/cert/cert_policy_enforcer_unittest.cc » ('j') | net/cert/cert_policy_enforcer_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_policy_enforcer.cc
diff --git a/net/cert/cert_policy_enforcer.cc b/net/cert/cert_policy_enforcer.cc
index 680c2c6d1d792cdf4ef9bf6d9177222cb240e3b5..bd115c5e88a63ad6a1849ea64ddf5644c0a57ddd 100644
--- a/net/cert/cert_policy_enforcer.cc
+++ b/net/cert/cert_policy_enforcer.cc
@@ -52,10 +52,6 @@ uint32_t ApproximateMonthDifference(const base::Time& start,
uint32_t month_diff = (exploded_expiry.year - exploded_start.year) * 12 +
(exploded_expiry.month - exploded_start.month);
davidben 2015/03/25 15:00:54 This still isn't quite right, is it? A certificate
Eran Messeri 2015/03/25 18:27:28 This is trickier than it seems, since the policy,
- // Add any remainder as a full month.
- if (exploded_expiry.day_of_month > exploded_start.day_of_month)
- ++month_diff;
-
return month_diff;
}
« no previous file with comments | « no previous file | net/cert/cert_policy_enforcer_unittest.cc » ('j') | net/cert/cert_policy_enforcer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698