summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database_nss.cc
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 21:57:09 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 21:57:09 +0000
commit54df73904399a0c2fceb00676ebcef58062e39aa (patch)
tree045f08104b12ed0c69075de8d62617f7ed3ca89a /net/base/cert_database_nss.cc
parenta6b23b1c774889bb7006783f4e5bade521a4b68b (diff)
downloadchromium_src-54df73904399a0c2fceb00676ebcef58062e39aa.zip
chromium_src-54df73904399a0c2fceb00676ebcef58062e39aa.tar.gz
chromium_src-54df73904399a0c2fceb00676ebcef58062e39aa.tar.bz2
This change implements certificate import from ONC file.
It will import any certificates in an ONC file into the certificate database. It does not yet associate the given GUID for the certificate with the certificate added to the database. That will happen in an upcoming CL. This also adds test cases for importing each type of certificate. BUG=chromium-os:19404,chromium-os:19406 TEST=Ran new unit test cases. Imported ONC file with a certificate and saw that it appeared in the certificate manager. Review URL: http://codereview.chromium.org/8403007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database_nss.cc')
-rw-r--r--net/base/cert_database_nss.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/cert_database_nss.cc b/net/base/cert_database_nss.cc
index 4fa877d..817372d 100644
--- a/net/base/cert_database_nss.cc
+++ b/net/base/cert_database_nss.cc
@@ -328,6 +328,13 @@ bool CertDatabase::DeleteCertAndKey(const X509Certificate* cert) {
return true;
}
+bool CertDatabase::DeleteCertAndKeyByLabel(const std::string& label) {
+ // TODO(gspencer):Find the certificate with the given CKA_LABEL
+ // (nickname), and delete it.
+ NOTIMPLEMENTED();
+ return false;
+}
+
bool CertDatabase::IsReadOnly(const X509Certificate* cert) const {
PK11SlotInfo* slot = cert->os_cert_handle()->slot;
return slot && PK11_IsReadOnly(slot);