| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "crypto/nss_util.h" | 5 #include "crypto/nss_util.h" |
| 6 #include "crypto/nss_util_internal.h" | 6 #include "crypto/nss_util_internal.h" |
| 7 | 7 |
| 8 #include <nss.h> | 8 #include <nss.h> |
| 9 #include <pk11pub.h> | 9 #include <pk11pub.h> |
| 10 #include <plarena.h> | 10 #include <plarena.h> |
| 11 #include <prerror.h> | 11 #include <prerror.h> |
| 12 #include <prinit.h> | 12 #include <prinit.h> |
| 13 #include <prtime.h> | 13 #include <prtime.h> |
| 14 #include <secmod.h> | 14 #include <secmod.h> |
| 15 | 15 |
| 16 #if defined(OS_OPENBSD) | 16 #if defined(OS_OPENBSD) |
| 17 #include <sys/mount.h> | 17 #include <sys/mount.h> |
| 18 #include <sys/param.h> | 18 #include <sys/param.h> |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 #include <map> | 21 #include <map> |
| 22 #include <vector> | 22 #include <vector> |
| 23 | 23 |
| 24 #include "base/base_paths.h" | 24 #include "base/base_paths.h" |
| 25 #include "base/bind.h" | 25 #include "base/bind.h" |
| 26 #include "base/cpu.h" | 26 #include "base/cpu.h" |
| 27 #include "base/debug/alias.h" | 27 #include "base/debug/alias.h" |
| 28 #include "base/debug/stack_trace.h" | 28 #include "base/debug/stack_trace.h" |
| 29 #include "base/environment.h" | 29 #include "base/environment.h" |
| 30 #include "base/file_util.h" | |
| 31 #include "base/files/file_path.h" | 30 #include "base/files/file_path.h" |
| 31 #include "base/files/file_util.h" |
| 32 #include "base/lazy_instance.h" | 32 #include "base/lazy_instance.h" |
| 33 #include "base/logging.h" | 33 #include "base/logging.h" |
| 34 #include "base/memory/scoped_ptr.h" | 34 #include "base/memory/scoped_ptr.h" |
| 35 #include "base/message_loop/message_loop.h" | 35 #include "base/message_loop/message_loop.h" |
| 36 #include "base/metrics/histogram.h" | 36 #include "base/metrics/histogram.h" |
| 37 #include "base/native_library.h" | 37 #include "base/native_library.h" |
| 38 #include "base/path_service.h" | 38 #include "base/path_service.h" |
| 39 #include "base/stl_util.h" | 39 #include "base/stl_util.h" |
| 40 #include "base/strings/stringprintf.h" | 40 #include "base/strings/stringprintf.h" |
| 41 #include "base/threading/thread_checker.h" | 41 #include "base/threading/thread_checker.h" |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 return time.ToInternalValue() - base::Time::UnixEpoch().ToInternalValue(); | 1099 return time.ToInternalValue() - base::Time::UnixEpoch().ToInternalValue(); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 #if !defined(OS_CHROMEOS) | 1102 #if !defined(OS_CHROMEOS) |
| 1103 PK11SlotInfo* GetPersistentNSSKeySlot() { | 1103 PK11SlotInfo* GetPersistentNSSKeySlot() { |
| 1104 return g_nss_singleton.Get().GetPersistentNSSKeySlot(); | 1104 return g_nss_singleton.Get().GetPersistentNSSKeySlot(); |
| 1105 } | 1105 } |
| 1106 #endif | 1106 #endif |
| 1107 | 1107 |
| 1108 } // namespace crypto | 1108 } // namespace crypto |
| OLD | NEW |