summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database_nss_unittest.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 05:12:17 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 05:12:17 +0000
commit72f508123a618d0ca9051474990658b8180e0049 (patch)
tree6c98bc4c997b94359b5bdbb2e10d1074ed4e49c3 /net/base/cert_database_nss_unittest.cc
parentbb95e19c39083df9e63e649be72f81d3c4a3927f (diff)
downloadchromium_src-72f508123a618d0ca9051474990658b8180e0049.zip
chromium_src-72f508123a618d0ca9051474990658b8180e0049.tar.gz
chromium_src-72f508123a618d0ca9051474990658b8180e0049.tar.bz2
Cache the underlying OS certificate handle within the X509CertificateCache, rather than caching raw X509Certificate pointers.
TEST=X509CertificateTest.Cache, X509CertificateTest.Intermediates BUG=32623, 47648, 49377, 68448, 70216, 77374, 78038 Review URL: http://codereview.chromium.org/2944008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database_nss_unittest.cc')
-rw-r--r--net/base/cert_database_nss_unittest.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/base/cert_database_nss_unittest.cc b/net/base/cert_database_nss_unittest.cc
index e6cf147..63f2a43 100644
--- a/net/base/cert_database_nss_unittest.cc
+++ b/net/base/cert_database_nss_unittest.cc
@@ -51,11 +51,8 @@ CertificateList ListCertsInSlot(PK11SlotInfo* slot) {
for (CERTCertListNode* node = CERT_LIST_HEAD(cert_list);
!CERT_LIST_END(node, cert_list);
node = CERT_LIST_NEXT(node)) {
- result.push_back(
- X509Certificate::CreateFromHandle(
- node->cert,
- X509Certificate::SOURCE_LONE_CERT_IMPORT,
- X509Certificate::OSCertHandles()));
+ result.push_back(X509Certificate::CreateFromHandle(
+ node->cert, X509Certificate::OSCertHandles()));
}
CERT_DestroyCertList(cert_list);