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

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

Issue 452014: Remove the unnecessary workaround for NSS bug 455424, now that we require... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add ssl_client_socket_nss.cc to the CL. Created 11 years 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 | « net/base/cert_database_nss.cc ('k') | net/base/keygen_handler_nss.cc » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « net/base/cert_database_nss.cc ('k') | net/base/keygen_handler_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698