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

Unified Diff: net/test/test_certificate_data.h

Issue 2777383002: Update SSL error handling code to account for Subject CN deprecation (Closed)
Patch Set: Address Emily's feedback, add new histogram values. Created 3 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
Index: net/test/test_certificate_data.h
diff --git a/net/test/test_certificate_data.h b/net/test/test_certificate_data.h
index c8fa950786a0295b5b4a145da2a3a6e2a19944f7..fbeaca748fa2995d44bb8e2e6d6fdd386d8b4213 100644
--- a/net/test/test_certificate_data.h
+++ b/net/test/test_certificate_data.h
@@ -33,7 +33,8 @@ static const char kNistSPKIHash[] =
#define VARIABLE_IS_NOT_USED
#endif
-// Google's cert.
+// Google's 2009 cert. Lacks a SubjectAltName, but contains www.google.com in
+// the Subject CN field.
unsigned char VARIABLE_IS_NOT_USED google_der[] = {
0x30, 0x82, 0x03, 0x21, 0x30, 0x82, 0x02, 0x8a, 0xa0, 0x03, 0x02, 0x01,
@@ -106,7 +107,8 @@ unsigned char VARIABLE_IS_NOT_USED google_der[] = {
0xdf
};
-// webkit.org's cert.
+// webkit.org's 2008 cert. Contains a SubjectAltName field with *.webkit.org and
+// webkit.org. The Subject CN field contains *.webkit.org.
unsigned char VARIABLE_IS_NOT_USED webkit_der[] = {
0x30, 0x82, 0x05, 0x0d, 0x30, 0x82, 0x03, 0xf5, 0xa0, 0x03, 0x02, 0x01,
@@ -220,7 +222,9 @@ unsigned char VARIABLE_IS_NOT_USED webkit_der[] = {
0x8a
};
-// thawte.com's cert (it's EV-licious!).
+// thawte.com 2008 Extended Validation cert. Lacks a SubjectAltName, but
+// contains www.thawte.com in the Subject CN field.
+
unsigned char VARIABLE_IS_NOT_USED thawte_der[] = {
0x30, 0x82, 0x04, 0xa5, 0x30, 0x82, 0x03, 0x8d, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x10, 0x17, 0x76, 0x05, 0x88, 0x95, 0x58, 0xee, 0xbb, 0x00,

Powered by Google App Engine
This is Rietveld 408576698