From 72f508123a618d0ca9051474990658b8180e0049 Mon Sep 17 00:00:00 2001 From: "rsleevi@chromium.org" Date: Tue, 19 Jul 2011 05:12:17 +0000 Subject: 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 --- net/base/cert_database_nss_unittest.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'net/base/cert_database_nss_unittest.cc') 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); -- cgit v1.1