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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "base/threading/thread_checker.h" | 42 #include "base/threading/thread_checker.h" |
43 #include "base/threading/thread_restrictions.h" | 43 #include "base/threading/thread_restrictions.h" |
44 #include "build/build_config.h" | 44 #include "build/build_config.h" |
45 | 45 |
46 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not | 46 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not |
47 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't | 47 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't |
48 // use NSS for crypto or certificate verification, and we don't use the NSS | 48 // use NSS for crypto or certificate verification, and we don't use the NSS |
49 // certificate and key databases. | 49 // certificate and key databases. |
50 #if defined(USE_NSS) | 50 #if defined(USE_NSS) |
51 #include "base/synchronization/lock.h" | 51 #include "base/synchronization/lock.h" |
52 #include "crypto/crypto_module_blocking_password_delegate.h" | 52 #include "crypto/nss_crypto_module_delegate.h" |
53 #endif // defined(USE_NSS) | 53 #endif // defined(USE_NSS) |
54 | 54 |
55 namespace crypto { | 55 namespace crypto { |
56 | 56 |
57 namespace { | 57 namespace { |
58 | 58 |
59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
60 const char kNSSDatabaseName[] = "Real NSS database"; | 60 const char kNSSDatabaseName[] = "Real NSS database"; |
61 | 61 |
62 // Constants for loading the Chrome OS TPM-backed PKCS #11 library. | 62 // Constants for loading the Chrome OS TPM-backed PKCS #11 library. |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 | 1023 |
1024 PK11SlotInfo* GetPublicNSSKeySlot() { | 1024 PK11SlotInfo* GetPublicNSSKeySlot() { |
1025 return g_nss_singleton.Get().GetPublicNSSKeySlot(); | 1025 return g_nss_singleton.Get().GetPublicNSSKeySlot(); |
1026 } | 1026 } |
1027 | 1027 |
1028 PK11SlotInfo* GetPrivateNSSKeySlot() { | 1028 PK11SlotInfo* GetPrivateNSSKeySlot() { |
1029 return g_nss_singleton.Get().GetPrivateNSSKeySlot(); | 1029 return g_nss_singleton.Get().GetPrivateNSSKeySlot(); |
1030 } | 1030 } |
1031 | 1031 |
1032 } // namespace crypto | 1032 } // namespace crypto |
OLD | NEW |