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

Unified Diff: net/base/net_error_list.h

Issue 20628006: Reject certificates that are valid for too long. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/net_error_list.h
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index 5ec421ed7b5fd92efb9f4ab88c9113b90a980c7c..4449f87c73208090858d34d365b6496d029bd3d6 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -397,13 +397,16 @@ NET_ERROR(CERT_NON_UNIQUE_NAME, -210)
// a too-small RSA key).
NET_ERROR(CERT_WEAK_KEY, -211)
+// The certificate's validity period is too long.
+NET_ERROR(CERT_TOO_LONG_VALIDITY, -212)
+
// Add new certificate error codes here.
//
// Update the value of CERT_END whenever you add a new certificate error
// code.
// The value immediately past the last certificate error code.
-NET_ERROR(CERT_END, -212)
+NET_ERROR(CERT_END, -213)
// The URL is invalid.
NET_ERROR(INVALID_URL, -300)

Powered by Google App Engine
This is Rietveld 408576698