| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/singleton.h" | 5 #include "base/singleton.h" |
| 6 #include "net/base/ev_root_ca_metadata.h" | 6 #include "net/base/ev_root_ca_metadata.h" |
| 7 | 7 |
| 8 namespace net { | 8 namespace net { |
| 9 | 9 |
| 10 // Raw metadata. | 10 // Raw metadata. |
| 11 struct EVMetadata { | 11 struct EVMetadata { |
| 12 // The SHA-1 fingerprint of the root CA certificate, used as a unique | 12 // The SHA-1 fingerprint of the root CA certificate, used as a unique |
| 13 // identifier for a root CA certificate. | 13 // identifier for a root CA certificate. |
| 14 X509Certificate::Fingerprint fingerprint; | 14 X509Certificate::Fingerprint fingerprint; |
| 15 | 15 |
| 16 // The EV policy OID of the root CA. | 16 // The EV policy OID of the root CA. |
| 17 // Note: a root CA may have multiple EV policies. When that actually | 17 // Note: a root CA may have multiple EV policies. When that actually |
| 18 // happens, we'll need to support that. | 18 // happens, we'll need to support that. |
| 19 const char* policy_oid; | 19 const char* policy_oid; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 static const EVMetadata ev_root_ca_metadata[] = { | 22 static const EVMetadata ev_root_ca_metadata[] = { |
| 23 // COMODO Certification Authority | 23 // COMODO Certification Authority |
| 24 // https://secure.comodo.com/ | 24 // https://secure.comodo.com/ |
| 25 { { { 0x66, 0x31, 0xbf, 0x9e, 0xf7, 0x4f, 0x9e, 0xb6, 0xc9, 0xd5, | 25 { { { 0x66, 0x31, 0xbf, 0x9e, 0xf7, 0x4f, 0x9e, 0xb6, 0xc9, 0xd5, |
| 26 0xa6, 0x0c, 0xba, 0x6a, 0xbe, 0xd1, 0xf7, 0xbd, 0xef, 0x7b } }, | 26 0xa6, 0x0c, 0xba, 0x6a, 0xbe, 0xd1, 0xf7, 0xbd, 0xef, 0x7b } }, |
| 27 "1.3.6.1.4.1.6449.1.2.1.5.1" | 27 "1.3.6.1.4.1.6449.1.2.1.5.1" |
| 28 }, | 28 }, |
| 29 // Cybertrust Global Root |
| 30 // https://evup.cybertrust.ne.jp/ctj-ev-upgrader/evseal.gif |
| 31 { { { 0x5f, 0x43, 0xe5, 0xb1, 0xbf, 0xf8, 0x78, 0x8c, 0xac, 0x1c, |
| 32 0xc7, 0xca, 0x4a, 0x9a, 0xc6, 0x22, 0x2b, 0xcc, 0x34, 0xc6 } }, |
| 33 "1.3.6.1.4.1.6334.1.100.1" |
| 34 }, |
| 29 // DigiCert High Assurance EV Root CA | 35 // DigiCert High Assurance EV Root CA |
| 30 // https://www.digicert.com | 36 // https://www.digicert.com |
| 31 { { { 0x5f, 0xb7, 0xee, 0x06, 0x33, 0xe2, 0x59, 0xdb, 0xad, 0x0c, | 37 { { { 0x5f, 0xb7, 0xee, 0x06, 0x33, 0xe2, 0x59, 0xdb, 0xad, 0x0c, |
| 32 0x4c, 0x9a, 0xe6, 0xd3, 0x8f, 0x1a, 0x61, 0xc7, 0xdc, 0x25 } }, | 38 0x4c, 0x9a, 0xe6, 0xd3, 0x8f, 0x1a, 0x61, 0xc7, 0xdc, 0x25 } }, |
| 33 "2.16.840.1.114412.2.1" | 39 "2.16.840.1.114412.2.1" |
| 34 }, | 40 }, |
| 35 // Entrust.net Secure Server Certification Authority | 41 // Entrust.net Secure Server Certification Authority |
| 36 // https://www.entrust.net/ | 42 // https://www.entrust.net/ |
| 37 { { { 0x99, 0xa6, 0x9b, 0xe6, 0x1a, 0xfe, 0x88, 0x6b, 0x4d, 0x2b, | 43 { { { 0x99, 0xa6, 0x9b, 0xe6, 0x1a, 0xfe, 0x88, 0x6b, 0x4d, 0x2b, |
| 38 0x82, 0x00, 0x7c, 0xb8, 0x54, 0xfc, 0x31, 0x7e, 0x15, 0x39 } }, | 44 0x82, 0x00, 0x7c, 0xb8, 0x54, 0xfc, 0x31, 0x7e, 0x15, 0x39 } }, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 66 { { { 0xb1, 0xbc, 0x96, 0x8b, 0xd4, 0xf4, 0x9d, 0x62, 0x2a, 0xa8, | 72 { { { 0xb1, 0xbc, 0x96, 0x8b, 0xd4, 0xf4, 0x9d, 0x62, 0x2a, 0xa8, |
| 67 0x9a, 0x81, 0xf2, 0x15, 0x01, 0x52, 0xa4, 0x1d, 0x82, 0x9c } }, | 73 0x9a, 0x81, 0xf2, 0x15, 0x01, 0x52, 0xa4, 0x1d, 0x82, 0x9c } }, |
| 68 "1.3.6.1.4.1.4146.1.1" | 74 "1.3.6.1.4.1.4146.1.1" |
| 69 }, | 75 }, |
| 70 // Go Daddy Class 2 Certification Authority | 76 // Go Daddy Class 2 Certification Authority |
| 71 // https://www.godaddy.com/ | 77 // https://www.godaddy.com/ |
| 72 { { { 0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, | 78 { { { 0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, |
| 73 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4 } }, | 79 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4 } }, |
| 74 "2.16.840.1.114413.1.7.23.3" | 80 "2.16.840.1.114413.1.7.23.3" |
| 75 }, | 81 }, |
| 82 // GTE CyberTrust Global Root |
| 83 // https://www.cybertrust.ne.jp/ |
| 84 { { { 0x97, 0x81, 0x79, 0x50, 0xd8, 0x1c, 0x96, 0x70, 0xcc, 0x34, |
| 85 0xd8, 0x09, 0xcf, 0x79, 0x44, 0x31, 0x36, 0x7e, 0xf4, 0x74 } }, |
| 86 "1.3.6.1.4.1.6334.1.100.1" |
| 87 }, |
| 76 // Network Solutions Certificate Authority | 88 // Network Solutions Certificate Authority |
| 77 // https://www.networksolutions.com/website-packages/index.jsp | 89 // https://www.networksolutions.com/website-packages/index.jsp |
| 78 { { { 0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, | 90 { { { 0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, |
| 79 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce } }, | 91 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce } }, |
| 80 "1.3.6.1.4.1.782.1.2.1.8.1" | 92 "1.3.6.1.4.1.782.1.2.1.8.1" |
| 81 }, | 93 }, |
| 82 // QuoVadis Root CA 2 | 94 // QuoVadis Root CA 2 |
| 83 // https://www.quovadis.bm/ | 95 // https://www.quovadis.bm/ |
| 84 { { { 0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, | 96 { { { 0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, |
| 85 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7 } }, | 97 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7 } }, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ev_policy_[metadata.fingerprint] = metadata.policy_oid; | 187 ev_policy_[metadata.fingerprint] = metadata.policy_oid; |
| 176 // Multiple root CA certs may use the same EV policy OID. Having | 188 // Multiple root CA certs may use the same EV policy OID. Having |
| 177 // duplicates in the policy_oids_ array does no harm, so we don't | 189 // duplicates in the policy_oids_ array does no harm, so we don't |
| 178 // bother detecting duplicates. | 190 // bother detecting duplicates. |
| 179 policy_oids_[i] = metadata.policy_oid; | 191 policy_oids_[i] = metadata.policy_oid; |
| 180 } | 192 } |
| 181 } | 193 } |
| 182 | 194 |
| 183 } // namespace net | 195 } // namespace net |
| 184 | 196 |
| OLD | NEW |