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

Side by Side Diff: crypto/nss_util.cc

Issue 8527006: Change the Chrome OS PKCS #11 module from libopencryptoki.so to libchaps.so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <plarena.h> 9 #include <plarena.h>
10 #include <prerror.h> 10 #include <prerror.h>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #endif // defined(USE_NSS) 49 #endif // defined(USE_NSS)
50 50
51 namespace crypto { 51 namespace crypto {
52 52
53 namespace { 53 namespace {
54 54
55 #if defined(OS_CHROMEOS) 55 #if defined(OS_CHROMEOS)
56 const char kNSSDatabaseName[] = "Real NSS database"; 56 const char kNSSDatabaseName[] = "Real NSS database";
57 57
58 // Constants for loading opencryptoki. 58 // Constants for loading opencryptoki.
59 const char kOpencryptokiModuleName[] = "opencryptoki"; 59 const char kOpencryptokiModuleName[] = "Chaps";
60 const char kOpencryptokiPath[] = "/usr/lib/opencryptoki/libopencryptoki.so"; 60 const char kOpencryptokiPath[] = "libchaps.so";
gauravsh 2011/11/14 17:49:24 Doesn't this need to be the complete absolute path
Darren Krahn 2011/11/14 23:32:26 No... because libchaps.so is in /usr/lib On 2011/
wtc 2011/11/15 03:13:58 The comment on line 58 and the constant names on l
Darren Krahn 2011/11/16 17:41:17 Done.
61 61
62 // Fake certificate authority database used for testing. 62 // Fake certificate authority database used for testing.
63 static const FilePath::CharType kReadOnlyCertDB[] = 63 static const FilePath::CharType kReadOnlyCertDB[] =
64 FILE_PATH_LITERAL("/etc/fake_root_ca/nssdb"); 64 FILE_PATH_LITERAL("/etc/fake_root_ca/nssdb");
65 #endif // defined(OS_CHROMEOS) 65 #endif // defined(OS_CHROMEOS)
66 66
67 std::string GetNSSErrorMessage() { 67 std::string GetNSSErrorMessage() {
68 std::string result; 68 std::string result;
69 if (PR_GetErrorTextLength()) { 69 if (PR_GetErrorTextLength()) {
70 scoped_array<char> error_text(new char[PR_GetErrorTextLength() + 1]); 70 scoped_array<char> error_text(new char[PR_GetErrorTextLength() + 1]);
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 790
791 PK11SlotInfo* GetPublicNSSKeySlot() { 791 PK11SlotInfo* GetPublicNSSKeySlot() {
792 return g_nss_singleton.Get().GetPublicNSSKeySlot(); 792 return g_nss_singleton.Get().GetPublicNSSKeySlot();
793 } 793 }
794 794
795 PK11SlotInfo* GetPrivateNSSKeySlot() { 795 PK11SlotInfo* GetPrivateNSSKeySlot() {
796 return g_nss_singleton.Get().GetPrivateNSSKeySlot(); 796 return g_nss_singleton.Get().GetPrivateNSSKeySlot();
797 } 797 }
798 798
799 } // namespace crypto 799 } // namespace crypto
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698