diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 22:03:39 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 22:03:39 +0000 |
commit | 5c8e00570c198b8705f5674a1e18518a186f7fbb (patch) | |
tree | ebc85145c09acb9d45e6dd7ee0c967bd2e928db6 /base/nss_util.h | |
parent | c113e9510e7135107358db42397c0797c83ab12f (diff) | |
download | chromium_src-5c8e00570c198b8705f5674a1e18518a186f7fbb.zip chromium_src-5c8e00570c198b8705f5674a1e18518a186f7fbb.tar.gz chromium_src-5c8e00570c198b8705f5674a1e18518a186f7fbb.tar.bz2 |
Add NSS PKCS12 import/export functions to CertDatabase.
Use sql: prefix when opening NSS UserDB (this will affect existing Chromeos installations, which had been using the old berkelydb format.)
BUG=19991,51327,51328,51330,51332
TEST=net/base/cert_database_nss_unittest.cc
Review URL: http://codereview.chromium.org/3018038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nss_util.h')
-rw-r--r-- | base/nss_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/nss_util.h b/base/nss_util.h index b869e46..15b624c 100644 --- a/base/nss_util.h +++ b/base/nss_util.h @@ -9,6 +9,7 @@ #include "base/basictypes.h" #if defined(USE_NSS) +class FilePath; class Lock; #endif // defined(USE_NSS) @@ -39,6 +40,12 @@ void OpenPersistentNSSDB(); Time PRTimeToBaseTime(int64 prtime); #if defined(USE_NSS) +// Exposed for unittests only. |path| should be an existing directory under +// which the DB files will be placed. |description| is a user-visible name for +// the DB, as a utf8 string, which will be truncated at 32 bytes. +bool OpenTestNSSDB(const FilePath& path, const char* description); +void CloseTestNSSDB(); + // NSS has a bug which can cause a deadlock or stall in some cases when writing // to the certDB and keyDB. It also has a bug which causes concurrent key pair // generations to scribble over each other. To work around this, we synchronize |