Bug 1267905 - Replace uses of ScopedCERTCertList with UniqueCERTCertList. r=keeler

ScopedCERTCertList is based on Scoped.h, which is deprecated in favour of the
standardised UniquePtr.

Also changes CERTCertList parameters of various functions to make ownership more
explicit.

MozReview-Commit-ID: EXqxTK6inqy
This commit is contained in:
Cykesiopka
2016-05-05 14:56:36 -07:00
parent 4e04233a2e
commit c481191bd2
27 changed files with 181 additions and 164 deletions

View File

@@ -699,7 +699,7 @@ nsSiteSecurityService::ProcessPKPHeader(nsIURI* aSourceURI,
NS_ENSURE_TRUE(nssCert, NS_ERROR_FAILURE);
mozilla::pkix::Time now(mozilla::pkix::Now());
ScopedCERTCertList certList;
UniqueCERTCertList certList;
RefPtr<SharedCertVerifier> certVerifier(GetDefaultCertVerifier());
NS_ENSURE_TRUE(certVerifier, NS_ERROR_UNEXPECTED);
if (certVerifier->VerifySSLServerCert(nssCert, nullptr, // stapled ocsp