OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_util.h" | |
6 #include "base/nss_util_internal.h" | |
7 | 5 |
8 #include <nss.h> | |
9 #include <plarena.h> | |
10 #include <prerror.h> | |
11 #include <prinit.h> | |
12 #include <prtime.h> | |
13 #include <pk11pub.h> | |
14 #include <secmod.h> | |
15 | 6 |
16 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
17 #include <linux/nfs_fs.h> | 8 #include <linux/nfs_fs.h> |
18 #include <sys/vfs.h> | 9 #include <sys/vfs.h> |
19 #endif | 10 #endif |
20 | 11 |
21 #include "base/file_util.h" | 12 #include <stdbool.h> |
| 13 #include <stddef.h> |
| 14 #include <string> |
| 15 |
| 16 #include "base/basictypes.h" |
| 17 #include "base/file_path.h" |
22 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
23 #include "base/logging.h" | 19 #include "base/logging.h" |
24 #include "base/stringprintf.h" | 20 #include "base/stringprintf.h" |
25 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
| 22 #include "base/time.h" |
| 23 #include "third_party/nss/mozilla/nsprpub/lib/ds/plarenas.h" |
| 24 #include "third_party/nss/mozilla/nsprpub/pr/include/prerror.h" |
| 25 #include "third_party/nss/mozilla/nsprpub/pr/include/prinit.h" |
| 26 #include "third_party/nss/mozilla/nsprpub/pr/include/prthread.h" |
| 27 #include "third_party/nss/mozilla/nsprpub/pr/include/prtime.h" |
| 28 #include "third_party/nss/mozilla/nsprpub/pr/include/prtypes.h" |
| 29 #include "third_party/nss/mozilla/security/nss/lib/nss/nss.h" |
| 30 #include "third_party/nss/mozilla/security/nss/lib/pk11wrap/pk11pub.h" |
| 31 #include "third_party/nss/mozilla/security/nss/lib/pk11wrap/secmod.h" |
| 32 #include "third_party/nss/mozilla/security/nss/lib/softoken/secmodt.h" |
| 33 #include "third_party/nss/mozilla/security/nss/lib/util/seccomon.h" |
| 34 #include "third_party/nss/mozilla/security/nss/lib/util/utilrename.h" |
26 | 35 |
27 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not | 36 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not |
28 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't | 37 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't |
29 // use NSS for crypto or certificate verification, and we don't use the NSS | 38 // use NSS for crypto or certificate verification, and we don't use the NSS |
30 // certificate and key databases. | 39 // certificate and key databases. |
31 #if defined(USE_NSS) | 40 #if defined(USE_NSS) |
32 #include "base/crypto/crypto_module_blocking_password_delegate.h" | 41 #include "base/crypto/crypto_module_blocking_password_delegate.h" |
33 #include "base/environment.h" | 42 #include "base/environment.h" |
34 #include "base/scoped_ptr.h" | 43 #include "base/scoped_ptr.h" |
35 #include "base/synchronization/lock.h" | 44 #include "base/synchronization/lock.h" |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 exploded.millisecond = prxtime.tm_usec / 1000; | 436 exploded.millisecond = prxtime.tm_usec / 1000; |
428 | 437 |
429 return Time::FromUTCExploded(exploded); | 438 return Time::FromUTCExploded(exploded); |
430 } | 439 } |
431 | 440 |
432 PK11SlotInfo* GetDefaultNSSKeySlot() { | 441 PK11SlotInfo* GetDefaultNSSKeySlot() { |
433 return g_nss_singleton.Get().GetDefaultKeySlot(); | 442 return g_nss_singleton.Get().GetDefaultKeySlot(); |
434 } | 443 } |
435 | 444 |
436 } // namespace base | 445 } // namespace base |
OLD | NEW |