Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: net/cert/scoped_nss_types.h

Issue 1526783002: Build a chain in ClientCertStoreNSS to send intermediates to the server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP test does not work Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/scoped_nss_types.h
diff --git a/net/cert/scoped_nss_types.h b/net/cert/scoped_nss_types.h
index 0eb8d844f9db18c4e248f934d9e5646fe8338786..98906b05f558f32118791b89c0ec6f6f831895d1 100644
--- a/net/cert/scoped_nss_types.h
+++ b/net/cert/scoped_nss_types.h
@@ -17,7 +17,15 @@ struct FreeCERTCertificate {
}
};
-typedef scoped_ptr<CERTCertificate, FreeCERTCertificate> ScopedCERTCertificate;
+struct FreeCERTCertificateList {
+ void operator()(CERTCertificateList* x) const {
+ CERT_DestroyCertificateList(x);
+ }
+};
+
+using ScopedCERTCertificate = scoped_ptr<CERTCertificate, FreeCERTCertificate>;
+using ScopedCERTCertificateList =
+ scoped_ptr<CERTCertificateList, FreeCERTCertificateList>;
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698