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> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "base/debug/alias.h" | 26 #include "base/debug/alias.h" |
27 #include "base/environment.h" | 27 #include "base/environment.h" |
28 #include "base/file_util.h" | 28 #include "base/file_util.h" |
29 #include "base/files/file_path.h" | 29 #include "base/files/file_path.h" |
30 #include "base/files/scoped_temp_dir.h" | 30 #include "base/files/scoped_temp_dir.h" |
31 #include "base/lazy_instance.h" | 31 #include "base/lazy_instance.h" |
32 #include "base/logging.h" | 32 #include "base/logging.h" |
33 #include "base/memory/scoped_ptr.h" | 33 #include "base/memory/scoped_ptr.h" |
34 #include "base/metrics/histogram.h" | 34 #include "base/metrics/histogram.h" |
35 #include "base/native_library.h" | 35 #include "base/native_library.h" |
36 #include "base/stringprintf.h" | 36 #include "base/strings/stringprintf.h" |
37 #include "base/threading/thread_restrictions.h" | 37 #include "base/threading/thread_restrictions.h" |
38 #include "build/build_config.h" | 38 #include "build/build_config.h" |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 #include "crypto/symmetric_key.h" | 41 #include "crypto/symmetric_key.h" |
42 #endif | 42 #endif |
43 | 43 |
44 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not | 44 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not |
45 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't | 45 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't |
46 // use NSS for crypto or certificate verification, and we don't use the NSS | 46 // use NSS for crypto or certificate verification, and we don't use the NSS |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 | 817 |
818 PK11SlotInfo* GetPublicNSSKeySlot() { | 818 PK11SlotInfo* GetPublicNSSKeySlot() { |
819 return g_nss_singleton.Get().GetPublicNSSKeySlot(); | 819 return g_nss_singleton.Get().GetPublicNSSKeySlot(); |
820 } | 820 } |
821 | 821 |
822 PK11SlotInfo* GetPrivateNSSKeySlot() { | 822 PK11SlotInfo* GetPrivateNSSKeySlot() { |
823 return g_nss_singleton.Get().GetPrivateNSSKeySlot(); | 823 return g_nss_singleton.Get().GetPrivateNSSKeySlot(); |
824 } | 824 } |
825 | 825 |
826 } // namespace crypto | 826 } // namespace crypto |
OLD | NEW |