OLD | NEW |
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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/nss_init.h" | 5 #include "base/nss_init.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <nss.h> | 8 #include <nss.h> |
9 #include <plarena.h> | 9 #include <plarena.h> |
10 #include <prerror.h> | 10 #include <prerror.h> |
11 #include <prinit.h> | 11 #include <prinit.h> |
12 | |
13 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | |
14 // until NSS 3.12.2 comes out and we update to it. | |
15 #define Lock FOO_NSS_Lock | |
16 #include <pk11pub.h> | 12 #include <pk11pub.h> |
17 #include <secmod.h> | 13 #include <secmod.h> |
18 #include <ssl.h> | 14 #include <ssl.h> |
19 #undef Lock | |
20 | 15 |
21 #include "base/file_util.h" | 16 #include "base/file_util.h" |
22 #include "base/logging.h" | 17 #include "base/logging.h" |
23 #include "base/singleton.h" | 18 #include "base/singleton.h" |
24 #include "base/string_util.h" | 19 #include "base/string_util.h" |
25 | 20 |
26 namespace { | 21 namespace { |
27 | 22 |
28 std::string GetDefaultConfigDirectory() { | 23 std::string GetDefaultConfigDirectory() { |
29 const char* home = getenv("HOME"); | 24 const char* home = getenv("HOME"); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 171 |
177 void EnsureNSPRInit() { | 172 void EnsureNSPRInit() { |
178 Singleton<NSPRInitSingleton>::get(); | 173 Singleton<NSPRInitSingleton>::get(); |
179 } | 174 } |
180 | 175 |
181 void EnsureNSSInit() { | 176 void EnsureNSSInit() { |
182 Singleton<NSSInitSingleton>::get(); | 177 Singleton<NSSInitSingleton>::get(); |
183 } | 178 } |
184 | 179 |
185 } // namespace base | 180 } // namespace base |
OLD | NEW |