Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1023)

Side by Side Diff: components/ownership/owner_key_util_impl.h

Issue 1082123003: Rename USE_NSS to USE_NSS_CERTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-nss-certs
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/ownership/owner_key_util.h ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_ 5 #ifndef COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_
6 #define COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_ 6 #define COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/ownership/owner_key_util.h" 11 #include "components/ownership/owner_key_util.h"
12 #include "components/ownership/ownership_export.h" 12 #include "components/ownership/ownership_export.h"
13 13
14 namespace ownership { 14 namespace ownership {
15 15
16 // Implementation of OwnerKeyUtil which imports public part of the 16 // Implementation of OwnerKeyUtil which imports public part of the
17 // owner key from a filesystem. 17 // owner key from a filesystem.
18 class OWNERSHIP_EXPORT OwnerKeyUtilImpl : public OwnerKeyUtil { 18 class OWNERSHIP_EXPORT OwnerKeyUtilImpl : public OwnerKeyUtil {
19 public: 19 public:
20 explicit OwnerKeyUtilImpl(const base::FilePath& public_key_file); 20 explicit OwnerKeyUtilImpl(const base::FilePath& public_key_file);
21 21
22 // OwnerKeyUtil implementation: 22 // OwnerKeyUtil implementation:
23 bool ImportPublicKey(std::vector<uint8>* output) override; 23 bool ImportPublicKey(std::vector<uint8>* output) override;
24 #if defined(USE_NSS) 24 #if defined(USE_NSS_CERTS)
25 crypto::RSAPrivateKey* FindPrivateKeyInSlot(const std::vector<uint8>& key, 25 crypto::RSAPrivateKey* FindPrivateKeyInSlot(const std::vector<uint8>& key,
26 PK11SlotInfo* slot) override; 26 PK11SlotInfo* slot) override;
27 #endif // defined(USE_NSS) 27 #endif // defined(USE_NSS_CERTS)
28 bool IsPublicKeyPresent() override; 28 bool IsPublicKeyPresent() override;
29 29
30 private: 30 private:
31 ~OwnerKeyUtilImpl() override; 31 ~OwnerKeyUtilImpl() override;
32 32
33 // The file that holds the public key. 33 // The file that holds the public key.
34 base::FilePath public_key_file_; 34 base::FilePath public_key_file_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(OwnerKeyUtilImpl); 36 DISALLOW_COPY_AND_ASSIGN(OwnerKeyUtilImpl);
37 }; 37 };
38 38
39 } // namespace ownership 39 } // namespace ownership
40 40
41 #endif // COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_ 41 #endif // COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_IMPL_H_
OLDNEW
« no previous file with comments | « components/ownership/owner_key_util.h ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698