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

Unified Diff: extensions/browser/api/cast_channel/cast_socket.cc

Issue 1011133005: Increase tolerance for receiver's certificate expiry (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/cast_socket.cc
diff --git a/extensions/browser/api/cast_channel/cast_socket.cc b/extensions/browser/api/cast_channel/cast_socket.cc
index 34e4a86836082be7bb50341052cb0152fd59190e..7e4320208f0227f4373f20a3da1c3a776dcfc6a5 100644
--- a/extensions/browser/api/cast_channel/cast_socket.cc
+++ b/extensions/browser/api/cast_channel/cast_socket.cc
@@ -45,7 +45,7 @@
namespace {
-const int kMaxSelfSignedCertLifetimeInDays = 2;
+const int kMaxSelfSignedCertLifetimeInDays = 4;
std::string FormatTimeForLogging(base::Time time) {
base::Time::Exploded exploded_time;
@@ -197,7 +197,7 @@ bool CastSocketImpl::ExtractPeerCert(std::string* cert) {
logger_->LogSocketEvent(channel_id_, proto::SSL_INFO_OBTAINED);
// Ensure that the peer cert (which is self-signed) doesn't have an excessive
- // life-time (i.e. no more than 2 days).
+ // remaining life-time.
base::Time expiry = ssl_info.cert->valid_expiry();
base::Time lifetimeLimit =
base::Time::Now() +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698