Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 { { { 0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, | 142 { { { 0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, |
| 143 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4 } }, | 143 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4 } }, |
| 144 {"2.16.840.1.114413.1.7.23.3", NULL}, | 144 {"2.16.840.1.114413.1.7.23.3", NULL}, |
| 145 }, | 145 }, |
| 146 // GTE CyberTrust Global Root | 146 // GTE CyberTrust Global Root |
| 147 // https://www.cybertrust.ne.jp/ | 147 // https://www.cybertrust.ne.jp/ |
| 148 { { { 0x97, 0x81, 0x79, 0x50, 0xd8, 0x1c, 0x96, 0x70, 0xcc, 0x34, | 148 { { { 0x97, 0x81, 0x79, 0x50, 0xd8, 0x1c, 0x96, 0x70, 0xcc, 0x34, |
| 149 0xd8, 0x09, 0xcf, 0x79, 0x44, 0x31, 0x36, 0x7e, 0xf4, 0x74 } }, | 149 0xd8, 0x09, 0xcf, 0x79, 0x44, 0x31, 0x36, 0x7e, 0xf4, 0x74 } }, |
| 150 {"1.3.6.1.4.1.6334.1.100.1", NULL}, | 150 {"1.3.6.1.4.1.6334.1.100.1", NULL}, |
| 151 }, | 151 }, |
| 152 // Izenpe.com | |
| 153 // http://code.google.com/p/chromium/issues/detail?id=81795 | |
|
wtc
2011/07/06 23:21:36
Instead of the bug URL, please use the two test we
agl
2011/07/07 14:38:23
Done.
| |
| 154 { { { 0x2f, 0x78, 0x3d, 0x25, 0x52, 0x18, 0xa7, 0x4a, 0x65, 0x39, | |
| 155 0x71, 0xb5, 0x2c, 0xa2, 0x9c, 0x45, 0x15, 0x6f, 0xe9, 0x19} }, | |
| 156 {"1.3.6.1.4.1.14777.6.1.1", "1.3.6.1.4.1.14777.6.1.2", NULL}, | |
| 157 }, | |
| 152 // Network Solutions Certificate Authority | 158 // Network Solutions Certificate Authority |
| 153 // https://www.networksolutions.com/website-packages/index.jsp | 159 // https://www.networksolutions.com/website-packages/index.jsp |
| 154 { { { 0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, | 160 { { { 0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, |
| 155 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce } }, | 161 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce } }, |
| 156 {"1.3.6.1.4.1.782.1.2.1.8.1", NULL}, | 162 {"1.3.6.1.4.1.782.1.2.1.8.1", NULL}, |
| 157 }, | 163 }, |
| 158 // QuoVadis Root CA 2 | 164 // QuoVadis Root CA 2 |
| 159 // https://www.quovadis.bm/ | 165 // https://www.quovadis.bm/ |
| 160 { { { 0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, | 166 { { { 0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, |
| 161 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7 } }, | 167 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7 } }, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 {"2.16.840.1.114404.1.1.2.4.1", NULL}, | 260 {"2.16.840.1.114404.1.1.2.4.1", NULL}, |
| 255 } | 261 } |
| 256 }; | 262 }; |
| 257 | 263 |
| 258 #if defined(OS_WIN) | 264 #if defined(OS_WIN) |
| 259 // static | 265 // static |
| 260 const EVRootCAMetadata::PolicyOID EVRootCAMetadata::policy_oids_[] = { | 266 const EVRootCAMetadata::PolicyOID EVRootCAMetadata::policy_oids_[] = { |
| 261 // The OIDs must be sorted in ascending order. | 267 // The OIDs must be sorted in ascending order. |
| 262 "1.2.392.200091.100.721.1", | 268 "1.2.392.200091.100.721.1", |
| 263 "1.3.6.1.4.1.14370.1.6", | 269 "1.3.6.1.4.1.14370.1.6", |
| 270 "1.3.6.1.4.1.14777.6.1.1", | |
| 271 "1.3.6.1.4.1.14777.6.1.2", | |
| 264 "1.3.6.1.4.1.22234.2.5.2.3.1", | 272 "1.3.6.1.4.1.22234.2.5.2.3.1", |
| 265 "1.3.6.1.4.1.23223.1.1.1", | 273 "1.3.6.1.4.1.23223.1.1.1", |
| 266 "1.3.6.1.4.1.34697.2.1", | 274 "1.3.6.1.4.1.34697.2.1", |
| 267 "1.3.6.1.4.1.34697.2.2", | 275 "1.3.6.1.4.1.34697.2.2", |
| 268 "1.3.6.1.4.1.34697.2.3", | 276 "1.3.6.1.4.1.34697.2.3", |
| 269 "1.3.6.1.4.1.34697.2.4", | 277 "1.3.6.1.4.1.34697.2.4", |
| 270 "1.3.6.1.4.1.4146.1.1", | 278 "1.3.6.1.4.1.4146.1.1", |
| 271 "1.3.6.1.4.1.6334.1.100.1", | 279 "1.3.6.1.4.1.6334.1.100.1", |
| 272 "1.3.6.1.4.1.6449.1.2.1.5.1", | 280 "1.3.6.1.4.1.6449.1.2.1.5.1", |
| 273 "1.3.6.1.4.1.782.1.2.1.8.1", | 281 "1.3.6.1.4.1.782.1.2.1.8.1", |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 407 // static | 415 // static |
| 408 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) { | 416 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) { |
| 409 #if defined(USE_NSS) | 417 #if defined(USE_NSS) |
| 410 return a == b; | 418 return a == b; |
| 411 #else | 419 #else |
| 412 return !strcmp(a, b); | 420 return !strcmp(a, b); |
| 413 #endif | 421 #endif |
| 414 } | 422 } |
| 415 | 423 |
| 416 } // namespace net | 424 } // namespace net |
| OLD | NEW |