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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 8467031: net: make pinning enforcement timeout after ten weeks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« net/base/build_time.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 889fba86c36e2b6715937de8c5a758218ec8fa30..9bf8e9d4a48eec671e1b0b62c22833f335ff1feb 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -16,6 +16,7 @@
#include "base/rand_util.h"
#include "base/string_util.h"
#include "base/time.h"
+#include "net/base/build_time.h"
#include "net/base/cert_status_flags.h"
#include "net/base/cookie_monster.h"
#include "net/base/filter.h"
@@ -682,7 +683,8 @@ void URLRequestHttpJob::OnStartCompleted(int result) {
if (context_->transport_security_state()->HasPinsForHost(
&domain_state, host, sni_available)) {
if (!domain_state.IsChainOfPublicKeysPermitted(
- ssl_info.public_key_hashes)) {
+ ssl_info.public_key_hashes) &&
+ GetDaysSinceBuild() < 70 /* 10 weeks */) {
result = ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN;
UMA_HISTOGRAM_BOOLEAN("Net.PublicKeyPinSuccess", false);
TransportSecurityState::ReportUMAOnPinFailure(host);
« net/base/build_time.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698