nsNSSCertificate-nostack
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 139 23a95f97c6d2d9474d19bd1c95bdbdf581ab59e1
permissions -rw-r--r--
State as of now

diff --git a/security/manager/ssl/src/nsIdentityChecking.cpp b/security/manager/ssl/src/nsIdentityChecking.cpp
--- a/security/manager/ssl/src/nsIdentityChecking.cpp
+++ b/security/manager/ssl/src/nsIdentityChecking.cpp
@@ -504,7 +504,7 @@ loadTestEVInfos()
     if (!temp_ev->cert)
       return;
 
-    nsNSSCertificate c(temp_ev->cert);
+    nsNSSCertificate &c = *new nsNSSCertificate(temp_ev->cert);
     nsAutoString fingerprint;
     c.GetSha1Fingerprint(fingerprint);
 
@@ -708,7 +708,7 @@ nsNSSComponent::IdentityInfoInit()
     if (!entry.cert)
       continue;
 
-    nsNSSCertificate c(entry.cert);
+    nsNSSCertificate &c = *new nsNSSCertificate(entry.cert);
     nsAutoString fingerprint;
     c.GetSha1Fingerprint(fingerprint);
 
@@ -941,7 +941,7 @@ nsNSSCertificate::hasValidEVOidTag(SECOi
 
 #ifdef PR_LOGGING
   if (PR_LOG_TEST(gPIPNSSLog, PR_LOG_DEBUG)) {
-    nsNSSCertificate ic(issuerCert);
+    nsNSSCertificate &ic = *new nsNSSCertificate(issuerCert);
     nsAutoString fingerprint;
     ic.GetSha1Fingerprint(fingerprint);
     NS_LossyConvertUTF16toASCII fpa(fingerprint);