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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CERT_SCOPED_NSS_TYPES_H_ 5 #ifndef NET_CERT_SCOPED_NSS_TYPES_H_
6 #define NET_CERT_SCOPED_NSS_TYPES_H_ 6 #define NET_CERT_SCOPED_NSS_TYPES_H_
7 7
8 #include <cert.h> 8 #include <cert.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 struct FreeCERTCertificate { 14 struct FreeCERTCertificate {
15 void operator()(CERTCertificate* x) const { 15 void operator()(CERTCertificate* x) const {
16 CERT_DestroyCertificate(x); 16 CERT_DestroyCertificate(x);
17 } 17 }
18 }; 18 };
19 19
20 typedef scoped_ptr<CERTCertificate, FreeCERTCertificate> ScopedCERTCertificate; 20 struct FreeCERTCertificateList {
21 void operator()(CERTCertificateList* x) const {
22 CERT_DestroyCertificateList(x);
23 }
24 };
25
26 using ScopedCERTCertificate = scoped_ptr<CERTCertificate, FreeCERTCertificate>;
27 using ScopedCERTCertificateList =
28 scoped_ptr<CERTCertificateList, FreeCERTCertificateList>;
21 29
22 } // namespace net 30 } // namespace net
23 31
24 #endif // NET_CERT_SCOPED_NSS_TYPES_H_ 32 #endif // NET_CERT_SCOPED_NSS_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698