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

Side by Side Diff: net/base/ev_root_ca_metadata.cc

Issue 8118033: net: add NetSol's EV OIDs to cross-certifying roots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/ev_root_ca_metadata.h" 5 #include "net/base/ev_root_ca_metadata.h"
6 6
7 #if defined(USE_NSS) 7 #if defined(USE_NSS)
8 #include <cert.h> 8 #include <cert.h>
9 #include <pkcs11n.h> 9 #include <pkcs11n.h>
10 #include <secerr.h> 10 #include <secerr.h>
(...skipping 15 matching lines...) Expand all
26 26
27 // The EV policy OIDs of the root CA. 27 // The EV policy OIDs of the root CA.
28 const char* policy_oids[3]; 28 const char* policy_oids[3];
29 }; 29 };
30 30
31 static const EVMetadata ev_root_ca_metadata[] = { 31 static const EVMetadata ev_root_ca_metadata[] = {
32 // AddTrust External CA Root 32 // AddTrust External CA Root
33 // https://addtrustexternalcaroot-ev.comodoca.com 33 // https://addtrustexternalcaroot-ev.comodoca.com
34 { { { 0x02, 0xfa, 0xf3, 0xe2, 0x91, 0x43, 0x54, 0x68, 0x60, 0x78, 34 { { { 0x02, 0xfa, 0xf3, 0xe2, 0x91, 0x43, 0x54, 0x68, 0x60, 0x78,
35 0x57, 0x69, 0x4d, 0xf5, 0xe4, 0x5b, 0x68, 0x85, 0x18, 0x68 } }, 35 0x57, 0x69, 0x4d, 0xf5, 0xe4, 0x5b, 0x68, 0x85, 0x18, 0x68 } },
36 {"1.3.6.1.4.1.6449.1.2.1.5.1", NULL}, 36 {
37 "1.3.6.1.4.1.6449.1.2.1.5.1",
38 // This is the Network Solutions EV OID. However, this root
39 // cross-certifies NetSol and so we need it here too.
40 "1.3.6.1.4.1.782.1.2.1.8.1",
41 NULL,
42 },
37 }, 43 },
38 // AffirmTrust Commercial 44 // AffirmTrust Commercial
39 // https://commercial.affirmtrust.com/ 45 // https://commercial.affirmtrust.com/
40 { { { 0xf9, 0xb5, 0xb6, 0x32, 0x45, 0x5f, 0x9c, 0xbe, 0xec, 0x57, 46 { { { 0xf9, 0xb5, 0xb6, 0x32, 0x45, 0x5f, 0x9c, 0xbe, 0xec, 0x57,
41 0x5f, 0x80, 0xdc, 0xe9, 0x6e, 0x2c, 0xc7, 0xb2, 0x78, 0xb7 } }, 47 0x5f, 0x80, 0xdc, 0xe9, 0x6e, 0x2c, 0xc7, 0xb2, 0x78, 0xb7 } },
42 {"1.3.6.1.4.1.34697.2.1", NULL}, 48 {"1.3.6.1.4.1.34697.2.1", NULL},
43 }, 49 },
44 // AffirmTrust Networking 50 // AffirmTrust Networking
45 // https://networking.affirmtrust.com:4431 51 // https://networking.affirmtrust.com:4431
46 { { { 0x29, 0x36, 0x21, 0x02, 0x8b, 0x20, 0xed, 0x02, 0xf5, 0x66, 52 { { { 0x29, 0x36, 0x21, 0x02, 0x8b, 0x20, 0xed, 0x02, 0xf5, 0x66,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 {"2.16.840.1.113733.1.7.48.1", NULL}, 224 {"2.16.840.1.113733.1.7.48.1", NULL},
219 }, 225 },
220 // UTN - DATACorp SGC 226 // UTN - DATACorp SGC
221 { { { 0x58, 0x11, 0x9f, 0x0e, 0x12, 0x82, 0x87, 0xea, 0x50, 0xfd, 227 { { { 0x58, 0x11, 0x9f, 0x0e, 0x12, 0x82, 0x87, 0xea, 0x50, 0xfd,
222 0xd9, 0x87, 0x45, 0x6f, 0x4f, 0x78, 0xdc, 0xfa, 0xd6, 0xd4 } }, 228 0xd9, 0x87, 0x45, 0x6f, 0x4f, 0x78, 0xdc, 0xfa, 0xd6, 0xd4 } },
223 {"1.3.6.1.4.1.6449.1.2.1.5.1", NULL}, 229 {"1.3.6.1.4.1.6449.1.2.1.5.1", NULL},
224 }, 230 },
225 // UTN-USERFirst-Hardware 231 // UTN-USERFirst-Hardware
226 { { { 0x04, 0x83, 0xed, 0x33, 0x99, 0xac, 0x36, 0x08, 0x05, 0x87, 232 { { { 0x04, 0x83, 0xed, 0x33, 0x99, 0xac, 0x36, 0x08, 0x05, 0x87,
227 0x22, 0xed, 0xbc, 0x5e, 0x46, 0x00, 0xe3, 0xbe, 0xf9, 0xd7 } }, 233 0x22, 0xed, 0xbc, 0x5e, 0x46, 0x00, 0xe3, 0xbe, 0xf9, 0xd7 } },
228 {"1.3.6.1.4.1.6449.1.2.1.5.1", NULL}, 234 {
235 "1.3.6.1.4.1.6449.1.2.1.5.1",
236 // This is the Network Solutions EV OID. However, this root
237 // cross-certifies NetSol and so we need it here too.
238 "1.3.6.1.4.1.782.1.2.1.8.1",
239 NULL,
240 },
229 }, 241 },
230 // ValiCert Class 2 Policy Validation Authority 242 // ValiCert Class 2 Policy Validation Authority
231 { { { 0x31, 0x7a, 0x2a, 0xd0, 0x7f, 0x2b, 0x33, 0x5e, 0xf5, 0xa1, 243 { { { 0x31, 0x7a, 0x2a, 0xd0, 0x7f, 0x2b, 0x33, 0x5e, 0xf5, 0xa1,
232 0xc3, 0x4e, 0x4b, 0x57, 0xe8, 0xb7, 0xd8, 0xf1, 0xfc, 0xa6 } }, 244 0xc3, 0x4e, 0x4b, 0x57, 0xe8, 0xb7, 0xd8, 0xf1, 0xfc, 0xa6 } },
233 {"2.16.840.1.114413.1.7.23.3", "2.16.840.1.114414.1.7.23.3", NULL}, 245 {"2.16.840.1.114413.1.7.23.3", "2.16.840.1.114414.1.7.23.3", NULL},
234 }, 246 },
235 // VeriSign Class 3 Public Primary Certification Authority 247 // VeriSign Class 3 Public Primary Certification Authority
236 // https://www.verisign.com/ 248 // https://www.verisign.com/
237 { { { 0x74, 0x2c, 0x31, 0x92, 0xe6, 0x07, 0xe4, 0x24, 0xeb, 0x45, 249 { { { 0x74, 0x2c, 0x31, 0x92, 0xe6, 0x07, 0xe4, 0x24, 0xeb, 0x45,
238 0x49, 0x54, 0x2b, 0xe1, 0xbb, 0xc5, 0x3e, 0x61, 0x74, 0xe2 } }, 250 0x49, 0x54, 0x2b, 0xe1, 0xbb, 0xc5, 0x3e, 0x61, 0x74, 0xe2 } },
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // static 422 // static
411 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) { 423 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) {
412 #if defined(USE_NSS) 424 #if defined(USE_NSS)
413 return a == b; 425 return a == b;
414 #else 426 #else
415 return !strcmp(a, b); 427 return !strcmp(a, b);
416 #endif 428 #endif
417 } 429 }
418 430
419 } // namespace net 431 } // namespace net
OLDNEW
« 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