| 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(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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 const EVMetadata& metadata = ev_root_ca_metadata[i]; | 274 const EVMetadata& metadata = ev_root_ca_metadata[i]; |
| 275 ev_policy_[metadata.fingerprint] = metadata.policy_oid; | 275 ev_policy_[metadata.fingerprint] = metadata.policy_oid; |
| 276 // Multiple root CA certs may use the same EV policy OID. Having | 276 // Multiple root CA certs may use the same EV policy OID. Having |
| 277 // duplicates in the policy_oids_ array does no harm, so we don't | 277 // duplicates in the policy_oids_ array does no harm, so we don't |
| 278 // bother detecting duplicates. | 278 // bother detecting duplicates. |
| 279 policy_oids_.push_back(metadata.policy_oid); | 279 policy_oids_.push_back(metadata.policy_oid); |
| 280 } | 280 } |
| 281 #endif | 281 #endif |
| 282 } | 282 } |
| 283 | 283 |
| 284 EVRootCAMetadata::~EVRootCAMetadata() { |
| 285 } |
| 286 |
| 284 } // namespace net | 287 } // namespace net |
| OLD | NEW |