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 "net/base/ev_root_ca_metadata.h" | 5 #include "net/base/ev_root_ca_metadata.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | |
9 // until NSS 3.12.2 comes out and we update to it. | |
10 #define Lock FOO_NSS_Lock | |
11 #include <cert.h> | 8 #include <cert.h> |
12 #include <pkcs11n.h> | 9 #include <pkcs11n.h> |
13 #include <secerr.h> | 10 #include <secerr.h> |
14 #include <secoid.h> | 11 #include <secoid.h> |
15 #undef Lock | |
16 #endif | 12 #endif |
17 | 13 |
18 #include "base/logging.h" | 14 #include "base/logging.h" |
19 #include "base/singleton.h" | 15 #include "base/singleton.h" |
20 | 16 |
21 namespace net { | 17 namespace net { |
22 | 18 |
23 // Raw metadata. | 19 // Raw metadata. |
24 struct EVMetadata { | 20 struct EVMetadata { |
25 // The SHA-1 fingerprint of the root CA certificate, used as a unique | 21 // The SHA-1 fingerprint of the root CA certificate, used as a unique |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 ev_policy_[metadata.fingerprint] = metadata.policy_oid; | 263 ev_policy_[metadata.fingerprint] = metadata.policy_oid; |
268 // Multiple root CA certs may use the same EV policy OID. Having | 264 // Multiple root CA certs may use the same EV policy OID. Having |
269 // duplicates in the policy_oids_ array does no harm, so we don't | 265 // duplicates in the policy_oids_ array does no harm, so we don't |
270 // bother detecting duplicates. | 266 // bother detecting duplicates. |
271 policy_oids_.push_back(metadata.policy_oid); | 267 policy_oids_.push_back(metadata.policy_oid); |
272 } | 268 } |
273 #endif | 269 #endif |
274 } | 270 } |
275 | 271 |
276 } // namespace net | 272 } // namespace net |
OLD | NEW |